示例#1
0
        /*
         * Compares the two values referenced by ref1 and ref2 for equality
         */
        internal bool CompareRef(int ref1, int ref2)
        {
            int top = LuaLib.LuaGetTop(luaState);

            LuaLib.LuaGetRef(luaState, ref1);
            LuaLib.LuaGetRef(luaState, ref2);
            int equal = LuaLib.LuaEqual(luaState, -1, -2);

            LuaLib.LuaSetTop(luaState, top);
            return(equal != 0);
        }