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

Function lessequalothers

extlibs/lua/src/lvm.c:545–551  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaV_lessequalFunction · 0.85

Calls 2

l_strcmpFunction · 0.85
luaT_callorderTMFunction · 0.85

Tested by

no test coverage detected