MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaV_lessthan

Function luaV_lessthan

freebsd/contrib/openzfs/module/lua/lvm.c:232–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231
232int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r) {
233 int res;
234 if (ttisnumber(l) && ttisnumber(r))
235 return luai_numlt(L, nvalue(l), nvalue(r));
236 else if (ttisstring(l) && ttisstring(r))
237 return l_strcmp(rawtsvalue(l), rawtsvalue(r)) < 0;
238 else if ((res = call_orderTM(L, l, r, TM_LT)) < 0)
239 luaG_ordererror(L, l, r);
240 return res;
241}
242
243
244int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) {

Callers 2

luaV_executeFunction · 0.70
lua_compareFunction · 0.70

Calls 3

l_strcmpFunction · 0.70
call_orderTMFunction · 0.70
luaG_ordererrorFunction · 0.70

Tested by

no test coverage detected