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

Function lessequalothers

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

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

Source from the content-addressed store, hash-verified

547** return 'l <= r' for non-numbers.
548*/
549static int lessequalothers (lua_State *L, const TValue *l, const TValue *r) {
550 lua_assert(!ttisnumber(l) || !ttisnumber(r));
551 if (ttisstring(l) && ttisstring(r)) /* both are strings? */
552 return l_strcmp(tsvalue(l), tsvalue(r)) <= 0;
553 else
554 return luaT_callorderTM(L, l, r, TM_LE);
555}
556
557
558/*

Callers 1

luaV_lessequalFunction · 0.70

Calls 2

l_strcmpFunction · 0.70
luaT_callorderTMFunction · 0.70

Tested by

no test coverage detected