aboutsummaryrefslogtreecommitdiff
path: root/src/lindafactory.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-04 14:43:39 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-04 14:43:39 +0200
commit046f07e1a79f0d39b1db5f69f6132dbe70cda2a4 (patch)
tree657561aceb9cfab85ed32e456c7472c504b9b002 /src/lindafactory.cpp
parent20e551590b4491dade12191caf94411e7ec67dd9 (diff)
downloadlanes-046f07e1a79f0d39b1db5f69f6132dbe70cda2a4.tar.gz
lanes-046f07e1a79f0d39b1db5f69f6132dbe70cda2a4.tar.bz2
lanes-046f07e1a79f0d39b1db5f69f6132dbe70cda2a4.zip
Moved keeper functions around
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 6d26852..94dd3ab 100644
--- a/src/lindafactory.cpp
+++ b/src/lindafactory.cpp
@@ -79,7 +79,7 @@ void LindaFactory::deleteDeepObjectInternal(lua_State* L_, DeepPrelude* o_) cons
79 // Clean associated structures in the keeper state. 79 // Clean associated structures in the keeper state.
80 Keeper* const _K{ _need_acquire_release ? _linda->acquireKeeper() : _myK }; 80 Keeper* const _K{ _need_acquire_release ? _linda->acquireKeeper() : _myK };
81 // hopefully this won't ever raise an error as we would jump to the closest pcall site while forgetting to release the keeper mutex... 81 // hopefully this won't ever raise an error as we would jump to the closest pcall site while forgetting to release the keeper mutex...
82 [[maybe_unused]] KeeperCallResult const result{ keeper_call(_K->L, KEEPER_API(clear), L_, _linda, 0) }; 82 [[maybe_unused]] KeeperCallResult const result{ keeper_call(_K->L, KEEPER_API(destruct), L_, _linda, 0) };
83 LUA_ASSERT(L_, result.has_value() && result.value() == 0); 83 LUA_ASSERT(L_, result.has_value() && result.value() == 0);
84 if (_need_acquire_release) { 84 if (_need_acquire_release) {
85 _linda->releaseKeeper(_K); 85 _linda->releaseKeeper(_K);