int lua_equal (lua_State *L, int index1, int index2);
Returns 1 if the two values in acceptable indices index1
and index2
are equal, following the semantics of the Lua ==
operator (that is, may call metamethods). Otherwise returns 0. Also returns 0 if any of the indices is non valid.