Eliminate LuaStack::rawgeti, it's not safe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user