MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / laction

Function laction

third-party/lua-5.5.0/src/lua.c:77–81  ·  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

75** interpreter.
76*/
77static void laction (int i) {
78 int flag = LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT;
79 setsignal(i, SIG_DFL); /* if another SIGINT happens, terminate process */
80 lua_sethook(globalL, lstop, flag, 1);
81}
82
83
84static void print_usage (const char *badoption) {

Callers

nothing calls this directly

Calls 2

setsignalFunction · 0.70
lua_sethookFunction · 0.70

Tested by

no test coverage detected