LUA_EQUAL(3) Library Functions Manual LUA_EQUAL(3)

lua_equalcompare two values for equality, function indicator [-0, +0, e]

#include <lua.h>

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.

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The lua_equal() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 14, 2022 Debian