1
0
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:
0O0o0oOoO00
2025-11-23 23:55:23 +08:00
parent 7ed871e9b3
commit 2fbc993ce6

View File

@@ -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);