** Set 'trap' for all active Lua frames. ** This function can be called during a signal, under "reasonable" ** assumptions. A new 'ci' is completely linked in the list before it ** becomes part of the "active" list, and we assume that pointers are ** atomic; see comment in next function. ** (A compiler doing interprocedural optimizations could, theoretically, ** reorder memory writes in such a way
| 112 | ** has no good reasons to do that.) |
| 113 | */ |
| 114 | static void settraps (CallInfo *ci) { |
| 115 | for (; ci != NULL; ci = ci->previous) |
| 116 | if (isLua(ci)) |
| 117 | ci->u.l.trap = 1; |
| 118 | } |
| 119 | |
| 120 | |
| 121 | /* |