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

Function cond

app/redis-6.2.6/deps/lua/src/lparser.c:969–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967
968
969static int cond (LexState *ls) {
970 /* cond -> exp */
971 expdesc v;
972 expr(ls, &v); /* read condition */
973 if (v.k == VNIL) v.k = VFALSE; /* `falses' are all equal here */
974 luaK_goiftrue(ls->fs, &v);
975 return v.f;
976}
977
978
979static void breakstat (LexState *ls) {

Callers 4

whilestatFunction · 0.70
repeatstatFunction · 0.70
test_then_blockFunction · 0.70
poll_timeoutFunction · 0.50

Calls 2

exprFunction · 0.70
luaK_goiftrueFunction · 0.70

Tested by 1

test_then_blockFunction · 0.56