aboutsummaryrefslogtreecommitdiff
path: root/src/lindafactory.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/lindafactory.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 '')
-rw-r--r--src/lindafactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lindafactory.cpp b/src/lindafactory.cpp
index 3f4b9b0..6a2b000 100644
--- a/src/lindafactory.cpp
+++ b/src/lindafactory.cpp
@@ -69,7 +69,7 @@ void LindaFactory::createMetatable(lua_State* L_) const
69void LindaFactory::deleteDeepObjectInternal(lua_State* L_, DeepPrelude* o_) const 69void LindaFactory::deleteDeepObjectInternal(lua_State* L_, DeepPrelude* o_) const
70{ 70{
71 Linda* const _linda{ static_cast<Linda*>(o_) }; 71 Linda* const _linda{ static_cast<Linda*>(o_) };
72 LUA_ASSERT(L_, _linda); 72 LUA_ASSERT(L_, _linda && !_linda->inKeeperOperation());
73 Keeper* const _myK{ _linda->whichKeeper() }; 73 Keeper* const _myK{ _linda->whichKeeper() };
74 // if collected after the universe, keepers are already destroyed, and there is nothing to clear 74 // if collected after the universe, keepers are already destroyed, and there is nothing to clear
75 if (_myK) { 75 if (_myK) {