aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-07 10:07:44 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-07 10:07:44 +0200
commit6a2d1112c3cf64b46f7c60d7878d5cc8101fc5cd (patch)
treeedc830d4507fc8b05c2202dcebb499d16563cb3d /src/linda.cpp
parent57ca292c8844e566184e3f7e5c98fa98991684bd (diff)
downloadlanes-6a2d1112c3cf64b46f7c60d7878d5cc8101fc5cd.tar.gz
lanes-6a2d1112c3cf64b46f7c60d7878d5cc8101fc5cd.tar.bz2
lanes-6a2d1112c3cf64b46f7c60d7878d5cc8101fc5cd.zip
Debug code to help track linda gc during keeper operation
Diffstat (limited to 'src/linda.cpp')
-rw-r--r--src/linda.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index 8b6df8e..3449f89 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -181,6 +181,8 @@ int Linda::ProtectedCall(lua_State* L_, lua_CFunction f_)
181 lua_State* const _KL{ _K ? _K->L : nullptr }; 181 lua_State* const _KL{ _K ? _K->L : nullptr };
182 if (_KL == nullptr) 182 if (_KL == nullptr)
183 return 0; 183 return 0;
184
185 LUA_ASSERT_CODE(auto const _koip{ _linda->startKeeperOperation(L_) });
184 // if we didn't do anything wrong, the keeper stack should be clean 186 // if we didn't do anything wrong, the keeper stack should be clean
185 LUA_ASSERT(L_, lua_gettop(_KL) == 0); 187 LUA_ASSERT(L_, lua_gettop(_KL) == 0);
186 188