diff options
Diffstat (limited to 'src/uniquekey.hpp')
-rw-r--r-- | src/uniquekey.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uniquekey.hpp b/src/uniquekey.hpp index 4c9eb58..ace21c4 100644 --- a/src/uniquekey.hpp +++ b/src/uniquekey.hpp | |||
@@ -80,7 +80,7 @@ class RegistryUniqueKey final | |||
80 | STACK_GROW(L_, 1); | 80 | STACK_GROW(L_, 1); |
81 | STACK_CHECK_START_REL(L_, 0); | 81 | STACK_CHECK_START_REL(L_, 0); |
82 | pushValue(L_); // L_: ... {}|nil | 82 | pushValue(L_); // L_: ... {}|nil |
83 | T* const value{ luaG_tolightuserdata<T>(L_, kIdxTop) }; | 83 | T* const value{ luaW_tolightuserdata<T>(L_, kIdxTop) }; |
84 | lua_pop(L_, 1); // L_: ... | 84 | lua_pop(L_, 1); // L_: ... |
85 | STACK_CHECK(L_, 0); | 85 | STACK_CHECK(L_, 0); |
86 | return value; | 86 | return value; |
@@ -125,8 +125,8 @@ class RegistryUniqueKey final | |||
125 | if (!mode_.empty()) { | 125 | if (!mode_.empty()) { |
126 | STACK_GROW(L_, 3); | 126 | STACK_GROW(L_, 3); |
127 | lua_createtable(L_, 0, 1); // L_: {} mt | 127 | lua_createtable(L_, 0, 1); // L_: {} mt |
128 | luaG_pushstring(L_, "__mode"); // L_: {} mt "__mode" | 128 | luaW_pushstring(L_, "__mode"); // L_: {} mt "__mode" |
129 | luaG_pushstring(L_, mode_); // L_: {} mt "__mode" mode | 129 | luaW_pushstring(L_, mode_); // L_: {} mt "__mode" mode |
130 | lua_rawset(L_, -3); // L_: {} mt | 130 | lua_rawset(L_, -3); // L_: {} mt |
131 | lua_setmetatable(L_, -2); // L_: {} | 131 | lua_setmetatable(L_, -2); // L_: {} |
132 | } | 132 | } |