diff options
| -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 | ||
