diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/deep.cpp | 2 | ||||
-rw-r--r-- | src/deep.hpp | 2 |
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 | // ################################################################################################# |