MCPcopy Create free account
hub / github.com/defold/defold / lua_equal

Function lua_equal

engine/lua/src/lua/lapi.c:287–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286
287LUA_API int lua_equal (lua_State *L, int index1, int index2) {
288 StkId o1, o2;
289 int i;
290 lua_lock(L); /* may call tag method */
291 o1 = index2adr(L, index1);
292 o2 = index2adr(L, index2);
293 i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0 : equalobj(L, o1, o2);
294 lua_unlock(L);
295 return i;
296}
297
298
299LUA_API int lua_lessthan (lua_State *L, int index1, int index2) {

Callers

nothing calls this directly

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected