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

Function laction

extlibs/lua/src/lua.c:56–59  ·  view source on GitHub ↗

** Function to be called at a C signal. Because a C signal cannot ** just change a Lua state (as there is no proper synchronization), ** this function only sets a hook that, when called, will stop the ** interpreter. */

Source from the content-addressed store, hash-verified

54** interpreter.
55*/
56static void laction (int i) {
57 signal(i, SIG_DFL); /* if another SIGINT happens, terminate process */
58 lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1);
59}
60
61
62static void print_usage (const char *badoption) {

Callers

nothing calls this directly

Calls 1

lua_sethookFunction · 0.85

Tested by

no test coverage detected