aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-12-10 17:08:15 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-12-10 17:08:15 +0100
commit04f59310579a97102461710f6b3c8826e72723b3 (patch)
treed241690d2fd9041ec0e086a16e78228b501ececa /src
parent18c708eb8fbe995efe4b06b93421db3d25e22636 (diff)
downloadlanes-04f59310579a97102461710f6b3c8826e72723b3.tar.gz
lanes-04f59310579a97102461710f6b3c8826e72723b3.tar.bz2
lanes-04f59310579a97102461710f6b3c8826e72723b3.zip
Expanded deep_test a bit
Diffstat (limited to 'src')
-rw-r--r--src/deep.cpp2
-rw-r--r--src/deep.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/deep.cpp b/src/deep.cpp
index 7b287f5..bd340f4 100644
--- a/src/deep.cpp
+++ b/src/deep.cpp
@@ -116,7 +116,7 @@ int DeepFactory::DeepGC(lua_State* const L_)
116 // need an empty stack in case we are GC_ing from a Keeper, so that empty stack checks aren't triggered 116 // need an empty stack in case we are GC_ing from a Keeper, so that empty stack checks aren't triggered
117 lua_pop(L_, 2); // L_: 117 lua_pop(L_, 2); // L_:
118 } 118 }
119 DeepFactory::DeleteDeepObject(L_, _p); 119 DeleteDeepObject(L_, _p);
120 } 120 }
121 return 0; 121 return 0;
122} 122}
diff --git a/src/deep.hpp b/src/deep.hpp
index e4bdaca..6bc3b20 100644
--- a/src/deep.hpp
+++ b/src/deep.hpp
@@ -41,6 +41,8 @@ class DeepPrelude
41 41
42 public: 42 public:
43 void push(lua_State* L_) const; 43 void push(lua_State* L_) const;
44 [[nodiscard]]
45 int getRefcount() const { return refcount.load(std::memory_order_relaxed); }
44}; 46};
45 47
46// ################################################################################################# 48// #################################################################################################