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

Function lessequalothers

third-party/lua-5.5.0/src/lvm.c:559–565  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

557** return 'l <= r' for non-numbers.
558*/
559static int lessequalothers (lua_State *L, const TValue *l, const TValue *r) {
560 lua_assert(!ttisnumber(l) || !ttisnumber(r));
561 if (ttisstring(l) && ttisstring(r)) /* both are strings? */
562 return l_strcmp(tsvalue(l), tsvalue(r)) <= 0;
563 else
564 return luaT_callorderTM(L, l, r, TM_LE);
565}
566
567
568/*

Callers 1

luaV_lessequalFunction · 0.70

Calls 2

l_strcmpFunction · 0.70
luaT_callorderTMFunction · 0.70

Tested by

no test coverage detected