diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 10:07:44 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 10:07:44 +0200 |
commit | 6a2d1112c3cf64b46f7c60d7878d5cc8101fc5cd (patch) | |
tree | edc830d4507fc8b05c2202dcebb499d16563cb3d /src/linda.cpp | |
parent | 57ca292c8844e566184e3f7e5c98fa98991684bd (diff) | |
download | lanes-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.cpp | 2 |
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 | ||