MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / test_then_block

Function test_then_block

lua/lparser.c:1190–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188
1189
1190static int test_then_block (LexState *ls) {
1191 /* test_then_block -> [IF | ELSEIF] cond THEN block */
1192 int condexit;
1193 luaX_next(ls); /* skip IF or ELSEIF */
1194 condexit = cond(ls);
1195 checknext(ls, TK_THEN);
1196 block(ls); /* `then' part */
1197 return condexit;
1198}
1199
1200
1201static void ifstat (LexState *ls, int line) {

Callers 1

ifstatFunction · 0.85

Calls 4

luaX_nextFunction · 0.85
condFunction · 0.85
checknextFunction · 0.85
blockFunction · 0.85

Tested by

no test coverage detected