MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / cond

Function cond

ThirdParty/lua/lua/lparser.c:1174–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172
1173
1174static int cond (LexState *ls) {
1175 /* cond -> exp */
1176 expdesc v;
1177 expr(ls, &v); /* read condition */
1178 if (v.k == VNIL) v.k = VFALSE; /* 'falses' are all equal here */
1179 luaK_goiftrue(ls->fs, &v);
1180 return v.f;
1181}
1182
1183
1184static void gotostat (LexState *ls, int pc) {

Callers 2

whilestatFunction · 0.85
repeatstatFunction · 0.85

Calls 2

exprFunction · 0.85
luaK_goiftrueFunction · 0.85

Tested by

no test coverage detected