MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lessthanothers

Function lessthanothers

extlibs/lua/src/lvm.c:523–529  ·  view source on GitHub ↗

** return 'l < r' for non-numbers. */

Source from the content-addressed store, hash-verified

521** return 'l < r' for non-numbers.
522*/
523static int lessthanothers (lua_State *L, const TValue *l, const TValue *r) {
524 lua_assert(!ttisnumber(l) || !ttisnumber(r));
525 if (ttisstring(l) && ttisstring(r)) /* both are strings? */
526 return l_strcmp(tsvalue(l), tsvalue(r)) < 0;
527 else
528 return luaT_callorderTM(L, l, r, TM_LT);
529}
530
531
532/*

Callers 1

luaV_lessthanFunction · 0.85

Calls 2

l_strcmpFunction · 0.85
luaT_callorderTMFunction · 0.85

Tested by

no test coverage detected