| 509 | } |
| 510 | |
| 511 | static 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 | |
| 521 | bool DFHack::Lua::Interrupt (bool force) |
| 522 | { |
nothing calls this directly
no test coverage detected