Fix a bug in function registry, improve docs

This commit is contained in:
2021-12-23 14:38:01 -05:00
parent b4639c70db
commit 82381ada2e
5 changed files with 112 additions and 41 deletions

View File

@@ -399,7 +399,6 @@ public:
void movesortablekey(LuaSlot val, LuaStack &other, LuaSlot otherslot);
bool rawequal(LuaSlot v1, LuaSlot v2) const {
return lua_rawequal(L_, v1, v2);
}
@@ -417,13 +416,6 @@ public:
pop_any_value(target);
}
template<typename RT, typename KT>
void gettable(RT &target, LuaSlot tab, KT key) const {
push_any_value(key);
lua_gettable(L_, tab);
pop_any_value(target);
}
template<typename RT, typename KT>
void rawget(RT &target, LuaSlot tab, KT key) const {
push_any_value(key);