aboutsummaryrefslogtreecommitdiff
path: root/src/macros_and_utils.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-20 16:23:54 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-20 16:23:54 +0100
commit6556cc558f0602cc99b1a8d1c7212b2e91490cdc (patch)
tree1763ed796df57a39432f045eccb8d80b2ec02a93 /src/macros_and_utils.h
parent0b516e9490b51bdd15c347fcda35b5dbb06b4829 (diff)
downloadlanes-6556cc558f0602cc99b1a8d1c7212b2e91490cdc.tar.gz
lanes-6556cc558f0602cc99b1a8d1c7212b2e91490cdc.tar.bz2
lanes-6556cc558f0602cc99b1a8d1c7212b2e91490cdc.zip
C++ migration: UniqueKey
Diffstat (limited to 'src/macros_and_utils.h')
-rw-r--r--src/macros_and_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h
index 8a4ffb3..ae93e97 100644
--- a/src/macros_and_utils.h
+++ b/src/macros_and_utils.h
@@ -83,14 +83,14 @@ extern char const* debugspew_indent;
83// non-string keyed registry access 83// non-string keyed registry access
84#define REGISTRY_SET( L, key_, value_) \ 84#define REGISTRY_SET( L, key_, value_) \
85{ \ 85{ \
86 push_unique_key( L, key_); \ 86 key_.push(L); \
87 value_; \ 87 value_; \
88 lua_rawset( L, LUA_REGISTRYINDEX); \ 88 lua_rawset( L, LUA_REGISTRYINDEX); \
89} 89}
90 90
91#define REGISTRY_GET( L, key_) \ 91#define REGISTRY_GET( L, key_) \
92{ \ 92{ \
93 push_unique_key( L, key_); \ 93 key_.push(L); \
94 lua_rawget( L, LUA_REGISTRYINDEX); \ 94 lua_rawget( L, LUA_REGISTRYINDEX); \
95} 95}
96 96