Still porting to lua 5.2

This commit is contained in:
2021-02-28 14:45:09 -05:00
parent 23ae577fbb
commit 5760078208
3 changed files with 9 additions and 9 deletions

View File

@@ -403,13 +403,13 @@ public:
lua_pop(L_, 1);
}
bool equal(LuaSlot v1, LuaSlot v2) const {
return lua_compare(L_, v1, v2, LUA_OPEQ);
bool rawequal(LuaSlot v1, LuaSlot v2) const {
return lua_rawequal(L_, v1, v2);
}
bool equal(LuaSlot v1, const char *name) const {
bool rawequal(LuaSlot v1, const char *name) const {
push_any_value(name);
bool result = lua_compare(L_, v1, -1, LUA_OPEQ);
bool result = lua_rawequal(L_, v1, -1);
lua_pop(L_, 1);
return result;
}