mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-22 23:29:29 +08:00
fix: do not register lua debug hook when creating LuaStatePauser
This commit is contained in:
@@ -57,9 +57,7 @@ static fnset_TimeScaleT get_Time_set_timeScale() {
|
||||
SPDLOG_INFO("{} called", #f); \
|
||||
}
|
||||
|
||||
LuaStatePauser::LuaStatePauser(lua_State* L) : m_L(L) {
|
||||
ensure_debug_hook();
|
||||
}
|
||||
LuaStatePauser::LuaStatePauser(lua_State* L) : m_L(L) {}
|
||||
|
||||
void LuaStatePauser::do_when_paused(const std::function<void()>& func) {
|
||||
auto _ = std::lock_guard<std::mutex>(m_atomic_pause);
|
||||
|
||||
Reference in New Issue
Block a user