MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_lessthan

Function lua_lessthan

Source/Misc/lua/src/lua.c:2148–2158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2146
2147
2148LUA_API int lua_lessthan (lua_State *L, int index1, int index2) {
2149StkId o1, o2;
2150int i;
2151lua_lock(L); /* may call tag method */
2152o1 = index2adr(L, index1);
2153o2 = index2adr(L, index2);
2154i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0
2155: luaV_lessthan(L, o1, o2);
2156lua_unlock(L);
2157return i;
2158}
2159
2160
2161

Callers 1

sort_compFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_lessthanFunction · 0.85

Tested by

no test coverage detected