| 314 | } |
| 315 | |
| 316 | void lua_scripts::reset_loop_overtime(lua_State *L) { |
| 317 | overtime = false; |
| 318 | // reset the hook to clear the counter |
| 319 | const int32_t vm_steps = MAX(_vm_steps, 1000); |
| 320 | lua_sethook(L, hook, LUA_MASKCOUNT, vm_steps); |
| 321 | } |
| 322 | |
| 323 | void lua_scripts::run_next_script(lua_State *L) { |
| 324 | if (scripts == nullptr) { |
nothing calls this directly
no test coverage detected