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

Function test_then_block

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

Source from the content-addressed store, hash-verified

1132
1133
1134static int test_then_block (LexState *ls) {
1135 /* test_then_block -> [IF | ELSEIF] cond THEN block */
1136 int condexit;
1137 luaX_next(ls); /* skip IF or ELSEIF */
1138 condexit = cond(ls);
1139 checknext(ls, TK_THEN);
1140 block(ls); /* `then' part */
1141 return condexit;
1142}
1143
1144
1145static void ifstat (LexState *ls, int line) {

Callers 1

ifstatFunction · 0.70

Calls 4

luaX_nextFunction · 0.70
condFunction · 0.70
checknextFunction · 0.70
blockFunction · 0.70

Tested by

no test coverage detected