MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lessequalothers

Function lessequalothers

3rd/lua-5.4.3/src/lvm.c:542–548  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaV_lessequalFunction · 0.85

Calls 2

l_strcmpFunction · 0.85
luaT_callorderTMFunction · 0.85

Tested by

no test coverage detected