Eliminate LuaStack::rawgeti, it's not safe

This commit is contained in:
2021-11-17 15:11:55 -05:00
parent fb043e9971
commit 0881e33c6f
5 changed files with 32 additions and 32 deletions

View File

@@ -429,7 +429,7 @@ public:
}
template<typename RT>
void rawgeti(RT &target, LuaSlot tab, int key) const {
void rawget(RT &target, LuaSlot tab, int key) const {
lua_rawgeti(L_, tab, key);
pop_any_value(target);
}
@@ -442,7 +442,7 @@ public:
}
template<typename VT>
void rawseti(LuaSlot tab, int key, VT value) const {
void rawset(LuaSlot tab, int key, VT value) const {
push_any_value(value);
lua_rawseti(L_, tab, key);
}