MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / settraps

Function settraps

extlibs/lua/src/ldebug.c:118–122  ·  view source on GitHub ↗

** This function can be called asynchronously (e.g. 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). ** (If we traverse one more item, there is no problem. If we traverse ** one less item, the worst that can happen is that the sig

Source from the content-addressed store, hash-verified

116** not interrupt the script.)
117*/
118static void settraps (CallInfo *ci) {
119 for (; ci != NULL; ci = ci->previous)
120 if (isLua(ci))
121 ci->u.l.trap = 1;
122}
123
124
125/*

Callers 1

lua_sethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected