/* * Compares the two values referenced by ref1 and ref2 for equality */ internal bool CompareRef(int ref1, int ref2) { int top = luaState.GetTop(); luaState.GetRef(ref1); luaState.GetRef(ref2); bool equal = luaState.AreEqual(-1, -2); luaState.SetTop(top); return(equal); }