| 519 | } |
| 520 | |
| 521 | bool DFHack::Lua::Interrupt (bool force) |
| 522 | { |
| 523 | lua_State *L = DFHack::Core::getInstance().getLuaState(true); |
| 524 | if (L->hook != interrupt_hook && !force) |
| 525 | return false; |
| 526 | if (force) |
| 527 | lua_sethook(L, interrupt_hook, LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT, 1); |
| 528 | lstop = 1; |
| 529 | return true; |
| 530 | } |
| 531 | |
| 532 | static int DFHACK_EXCEPTION_META_TOKEN = 0; |
| 533 |
nothing calls this directly
no test coverage detected