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

Function cond

extlibs/lua/src/lparser.c:1387–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385
1386
1387static int cond (LexState *ls) {
1388 /* cond -> exp */
1389 expdesc v;
1390 expr(ls, &v); /* read condition */
1391 if (v.k == VNIL) v.k = VFALSE; /* 'falses' are all equal here */
1392 luaK_goiftrue(ls->fs, &v);
1393 return v.f;
1394}
1395
1396
1397static void gotostat (LexState *ls) {

Callers 2

whilestatFunction · 0.85
repeatstatFunction · 0.85

Calls 2

exprFunction · 0.85
luaK_goiftrueFunction · 0.85

Tested by

no test coverage detected