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

Function if

extlibs/lua/src/ltm.c:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 return !l_isfalse(s2v(L->top));
204#if defined(LUA_COMPAT_LT_LE)
205 else if (event == TM_LE) {
206 /* try '!(p2 < p1)' for '(p1 <= p2)' */
207 L->ci->callstatus |= CIST_LEQ; /* mark it is doing 'lt' for 'le' */
208 if (callbinTM(L, p2, p1, L->top, TM_LT)) {
209 L->ci->callstatus ^= CIST_LEQ; /* clear mark */
210 return l_isfalse(s2v(L->top));
211 }
212 /* else error will remove this 'ci'; no need to clear mark */
213 }
214#endif
215 luaG_ordererror(L, p1, p2); /* no metamethod found */
216 return 0; /* to avoid warnings */

Callers 4

runCurrentTestMethod · 0.50
catch.hppFile · 0.50
os.ccFile · 0.50
tinydir.hFile · 0.50

Calls 1

callbinTMFunction · 0.85

Tested by

no test coverage detected