MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / settraps

Function settraps

lib/lua/src/ldebug.c:114–118  ·  view source on GitHub ↗

** 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

Source from the content-addressed store, hash-verified

112** has no good reasons to do that.)
113*/
114static 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/*

Callers 1

lua_sethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected