From 04f59310579a97102461710f6b3c8826e72723b3 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 10 Dec 2024 17:08:15 +0100 Subject: Expanded deep_test a bit --- src/deep.cpp | 2 +- src/deep.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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_) // need an empty stack in case we are GC_ing from a Keeper, so that empty stack checks aren't triggered lua_pop(L_, 2); // L_: } - DeepFactory::DeleteDeepObject(L_, _p); + DeleteDeepObject(L_, _p); } return 0; } 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 public: void push(lua_State* L_) const; + [[nodiscard]] + int getRefcount() const { return refcount.load(std::memory_order_relaxed); } }; // ################################################################################################# -- cgit v1.2.3-55-g6feb