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

Function interrupt_hook

library/LuaTools.cpp:511–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511static void interrupt_hook (lua_State *L, lua_Debug *ar)
512{
513 if (lstop)
514 {
515 lstop = 0;
516 interrupt_init(L); // Restore default settings if necessary
517 luaL_error(L, "interrupted!");
518 }
519}
520
521bool DFHack::Lua::Interrupt (bool force)
522{

Callers

nothing calls this directly

Calls 2

interrupt_initFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected