MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cond

Function cond

freebsd/contrib/openzfs/module/lua/lparser.c:1173–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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