/* * Compares the two values referenced by ref1 and ref2 for equality */ internal bool compareRef(int ref1, int ref2) { int top = LuaLib.lua_gettop(luaState); LuaLib.lua_getref(luaState, ref1); LuaLib.lua_getref(luaState, ref2); int equal = LuaLib.lua_equal(luaState, -1, -2); LuaLib.lua_settop(luaState, top); return(equal != 0); }