MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lessequalothers

Function lessequalothers

lib/lua/src/lvm.c:556–562  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaV_lessequalFunction · 0.85

Calls 2

l_strcmpFunction · 0.85
luaT_callorderTMFunction · 0.85

Tested by

no test coverage detected