LuaInterface.LuaDLL.lua_equal C# (CSharp) Method

lua_equal() public static method

public static lua_equal ( IntPtr luaState, int index1, int index2 ) : int
luaState System.IntPtr
index1 int
index2 int
return int
		public static int lua_equal(IntPtr luaState, int index1, int index2)
		{
			return lua_compare(luaState, index1, index2, 0);
		}

Usage Example

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

            LuaDLL.lua_getref(luaState, ref1);
            LuaDLL.lua_getref(luaState, ref2);
            int equal = LuaDLL.lua_equal(luaState, -1, -2);

            LuaDLL.lua_settop(luaState, top);
            return(equal != 0);
        }
All Usage Examples Of LuaInterface.LuaDLL::lua_equal
LuaDLL