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

Function cond

third-party/lua-5.2.4/src/lparser.c:1169–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

whilestatFunction · 0.70
repeatstatFunction · 0.70

Calls 2

exprFunction · 0.70
luaK_goiftrueFunction · 0.70

Tested by

no test coverage detected