MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / cond

Function cond

third-party/lua-5.5.0/src/lparser.c:1528–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1526
1527
1528static int cond (LexState *ls) {
1529 /* cond -> exp */
1530 expdesc v;
1531 expr(ls, &v); /* read condition */
1532 if (v.k == VNIL) v.k = VFALSE; /* 'falses' are all equal here */
1533 luaK_goiftrue(ls->fs, &v);
1534 return v.f;
1535}
1536
1537
1538static void gotostat (LexState *ls, int line) {

Callers 3

whilestatFunction · 0.70
repeatstatFunction · 0.70
test_then_blockFunction · 0.70

Calls 2

exprFunction · 0.70
luaK_goiftrueFunction · 0.70

Tested by 1

test_then_blockFunction · 0.56