MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / cond

Function cond

Source/Misc/lua/src/lua.c:8541–8548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8539
8540
8541static int cond (LexState *ls) {
8542/* cond -> exp */
8543expdesc v;
8544expr(ls, &v); /* read condition */
8545if (v.k == VNIL) v.k = VFALSE; /* `falses' are all equal here */
8546luaK_goiftrue(ls->fs, &v);
8547return v.f;
8548}
8549
8550
8551static void breakstat (LexState *ls) {

Callers 3

whilestatFunction · 0.85
repeatstatFunction · 0.85
test_then_blockFunction · 0.85

Calls 2

exprFunction · 0.85
luaK_goiftrueFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68