MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / cond

Function cond

src/Chain/libraries/glua/lparser.cpp:1213–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211
1212
1213static int cond(LexState *ls) {
1214 /* cond -> exp */
1215 expdesc v;
1216 expr(ls, &v); /* read condition */
1217 if (v.k == VNIL) v.k = VFALSE; /* 'falses' are all equal here */
1218 luaK_goiftrue(ls->fs, &v);
1219 return v.f;
1220}
1221
1222
1223static void gotostat(LexState *ls, int pc) {

Callers 4

whilestatFunction · 0.85
repeatstatFunction · 0.85
parseFunction · 0.85
parseMethod · 0.85

Calls 2

luaK_goiftrueFunction · 0.85
exprFunction · 0.70

Tested by

no test coverage detected