| 100 | } |
| 101 | |
| 102 | void FDeadLoopCheck::FGuard::SetTimeout() |
| 103 | { |
| 104 | const auto L = Owner->Env->GetMainState(); |
| 105 | const auto Hook = lua_gethook(L); |
| 106 | if (Hook == nullptr) |
| 107 | lua_sethook(L, OnLuaLineEvent, LUA_MASKLINE, 0); |
| 108 | } |
| 109 | |
| 110 | void FDeadLoopCheck::FGuard::OnLuaLineEvent(lua_State* L, lua_Debug* ar) |
| 111 | { |
no test coverage detected