MCPcopy Create free account
hub / github.com/DFHack/dfhack / lstop

Function lstop

depends/lua/src/lua.c:111–115  ·  view source on GitHub ↗

** Hook set by signal function to stop the interpreter. */

Source from the content-addressed store, hash-verified

109** Hook set by signal function to stop the interpreter.
110*/
111static void lstop (lua_State *L, lua_Debug *ar) {
112 (void)ar; /* unused arg. */
113 lua_sethook(L, NULL, 0, 0); /* reset hook */
114 luaL_error(L, "interrupted!");
115}
116
117
118/*

Callers

nothing calls this directly

Calls 2

lua_sethookFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected