diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 11:50:15 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 11:50:15 +0200 |
commit | ea94590a2c7e3fb8a0f10f69a66864d79c8241d5 (patch) | |
tree | cc26ab4493f408238bdbe13ade2a0fb807b30ee6 | |
parent | ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3 (diff) | |
download | lanes-ea94590a2c7e3fb8a0f10f69a66864d79c8241d5.tar.gz lanes-ea94590a2c7e3fb8a0f10f69a66864d79c8241d5.tar.bz2 lanes-ea94590a2c7e3fb8a0f10f69a66864d79c8241d5.zip |
Fix deep_test.cpp
-rw-r--r-- | deep_test/deep_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deep_test/deep_test.cpp b/deep_test/deep_test.cpp index 04eb98c..812019a 100644 --- a/deep_test/deep_test.cpp +++ b/deep_test/deep_test.cpp | |||
@@ -58,7 +58,7 @@ void MyDeepFactory::deleteDeepObjectInternal(lua_State* const L_, DeepPrelude* c | |||
58 | { | 58 | { |
59 | MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L, 1)) }; | 59 | MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L, 1)) }; |
60 | _self->inUse.fetch_add(1, std::memory_order_seq_cst); | 60 | _self->inUse.fetch_add(1, std::memory_order_seq_cst); |
61 | std::ignore = luaG_pushstringview(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); | 61 | std::ignore = luaG_pushstring(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); |
62 | _self->inUse.fetch_sub(1, std::memory_order_seq_cst); | 62 | _self->inUse.fetch_sub(1, std::memory_order_seq_cst); |
63 | return 1; | 63 | return 1; |
64 | } | 64 | } |
@@ -178,7 +178,7 @@ struct MyClonableUserdata | |||
178 | [[nodiscard]] static int clonable_tostring(lua_State* L) | 178 | [[nodiscard]] static int clonable_tostring(lua_State* L) |
179 | { | 179 | { |
180 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); | 180 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); |
181 | std::ignore = luaG_pushstringview(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); | 181 | std::ignore = luaG_pushstring(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); |
182 | return 1; | 182 | return 1; |
183 | } | 183 | } |
184 | 184 | ||