diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-14 16:01:26 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-14 16:01:26 +0200 |
commit | 4d364d3e77667b70bf3261da004f4990ef0c3ada (patch) | |
tree | 5a106ca427ba8704635b3324a352475dd8706ab8 /deep_test | |
parent | a925a9ee21c10184a08625e83d2b55850d6cb32f (diff) | |
download | lanes-4d364d3e77667b70bf3261da004f4990ef0c3ada.tar.gz lanes-4d364d3e77667b70bf3261da004f4990ef0c3ada.tar.bz2 lanes-4d364d3e77667b70bf3261da004f4990ef0c3ada.zip |
lua_pushliteral -> luaG_pushstring
Diffstat (limited to 'deep_test')
-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 2497742..7e16b2e 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_pushstring(L, "%p:deep(%d)", _self, _self->val); | 61 | luaG_pushstring(L, "%p:deep(%d)", _self, _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 | } |
@@ -179,7 +179,7 @@ struct MyClonableUserdata | |||
179 | [[nodiscard]] static int clonable_tostring(lua_State* L) | 179 | [[nodiscard]] static int clonable_tostring(lua_State* L) |
180 | { | 180 | { |
181 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); | 181 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); |
182 | std::ignore = luaG_pushstring(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); | 182 | luaG_pushstring(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); |
183 | return 1; | 183 | return 1; |
184 | } | 184 | } |
185 | 185 | ||