MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lessthanothers

Function lessthanothers

third-party/lua-5.4.6/src/lvm.c:527–533  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaV_lessthanFunction · 0.70

Calls 2

l_strcmpFunction · 0.70
luaT_callorderTMFunction · 0.70

Tested by

no test coverage detected