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

Function cond

third-party/lua-5.4.6/src/lparser.c:1405–1412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403
1404
1405static int cond (LexState *ls) {
1406 /* cond -> exp */
1407 expdesc v;
1408 expr(ls, &v); /* read condition */
1409 if (v.k == VNIL) v.k = VFALSE; /* 'falses' are all equal here */
1410 luaK_goiftrue(ls->fs, &v);
1411 return v.f;
1412}
1413
1414
1415static void gotostat (LexState *ls) {

Callers 2

whilestatFunction · 0.70
repeatstatFunction · 0.70

Calls 2

exprFunction · 0.70
luaK_goiftrueFunction · 0.70

Tested by

no test coverage detected