Skip to content

Commit 1209505

Browse files
committed
Fix #elif preprocessing
1 parent 17eaeb4 commit 1209505

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/preprocessor.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,9 @@ token_t *preprocess_internal(token_t *tk, preprocess_ctx_t *ctx)
916916
ci->ctx = CK_elif_then;
917917
tk = pp_read_constant_expr(tk, &included);
918918

919-
if (!ci->included && included) {
919+
if (!ci->included && included)
920920
ci->included = true;
921-
tk = lex_expect_token(tk, T_newline, true);
922-
} else
921+
else
923922
tk = skip_cond_incl(tk);
924923
continue;
925924
}

0 commit comments

Comments
 (0)