aboutsummaryrefslogtreecommitdiff
path: root/src/tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.cpp')
-rw-r--r--src/tools.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools.cpp b/src/tools.cpp
index cd25eda..98cbf27 100644
--- a/src/tools.cpp
+++ b/src/tools.cpp
@@ -38,14 +38,14 @@ THE SOFTWARE.
38DEBUGSPEW_CODE(char const* const DebugSpewIndentScope::debugspew_indent = "----+----!----+----!----+----!----+----!----+----!----+----!----+----!----+"); 38DEBUGSPEW_CODE(char const* const DebugSpewIndentScope::debugspew_indent = "----+----!----+----!----+----!----+----!----+----!----+----!----+----!----+");
39 39
40// crc64/we of string "LOOKUPCACHE_REGKEY" generated at http://www.nitrxgen.net/hashgen/ 40// crc64/we of string "LOOKUPCACHE_REGKEY" generated at http://www.nitrxgen.net/hashgen/
41static constexpr UniqueKey LOOKUPCACHE_REGKEY{ 0x837a68dfc6fcb716ull }; 41static constexpr RegistryUniqueKey LOOKUPCACHE_REGKEY{ 0x837A68DFC6FCB716ull };
42 42
43// ################################################################################################# 43// #################################################################################################
44 44
45/* 45/*
46 * Does what the original 'push_registry_subtable' function did, but adds an optional mode argument to it 46 * Does what the original 'push_registry_subtable' function did, but adds an optional mode argument to it
47 */ 47 */
48void push_registry_subtable_mode( lua_State* L, UniqueKey key_, const char* mode_) 48void push_registry_subtable_mode(lua_State* L, RegistryUniqueKey key_, const char* mode_)
49{ 49{
50 STACK_GROW(L, 3); 50 STACK_GROW(L, 3);
51 STACK_CHECK_START_REL(L, 0); 51 STACK_CHECK_START_REL(L, 0);
@@ -81,7 +81,7 @@ void push_registry_subtable_mode( lua_State* L, UniqueKey key_, const char* mode
81 * Push a registry subtable (keyed by unique 'key_') onto the stack. 81 * Push a registry subtable (keyed by unique 'key_') onto the stack.
82 * If the subtable does not exist, it is created and chained. 82 * If the subtable does not exist, it is created and chained.
83 */ 83 */
84void push_registry_subtable( lua_State* L, UniqueKey key_) 84void push_registry_subtable(lua_State* L, RegistryUniqueKey key_)
85{ 85{
86 push_registry_subtable_mode(L, key_, nullptr); 86 push_registry_subtable_mode(L, key_, nullptr);
87} 87}
@@ -534,7 +534,7 @@ void populate_func_lookup_table(lua_State* L, int i_, char const* name_)
534/*---=== Inter-state copying ===---*/ 534/*---=== Inter-state copying ===---*/
535 535
536// crc64/we of string "REG_MTID" generated at http://www.nitrxgen.net/hashgen/ 536// crc64/we of string "REG_MTID" generated at http://www.nitrxgen.net/hashgen/
537static constexpr UniqueKey REG_MTID{ 0x2e68f9b4751584dcull }; 537static constexpr RegistryUniqueKey REG_MTID{ 0x2E68F9B4751584DCull };
538 538
539/* 539/*
540* Get a unique ID for metatable at [i]. 540* Get a unique ID for metatable at [i].