MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_lessthan

Function lua_lessthan

deps/lua/src/lapi.c:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299LUA_API int lua_lessthan (lua_State *L, int index1, int index2) {
300 StkId o1, o2;
301 int i;
302 lua_lock(L); /* may call tag method */
303 o1 = index2adr(L, index1);
304 o2 = index2adr(L, index2);
305 i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0
306 : luaV_lessthan(L, o1, o2);
307 lua_unlock(L);
308 return i;
309}
310
311
312

Callers 1

sort_compFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_lessthanFunction · 0.85

Tested by

no test coverage detected