diff options
Diffstat (limited to 'preproc.c')
-rw-r--r-- | preproc.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1584,8 +1584,7 @@ static bool if_condition(Token * tline, enum preproc_token ct) goto iftype; iftype: - tline = expand_smacro(tline); - t = tline; + t = tline = expand_smacro(tline); while (tok_type_(t, TOK_WHITESPACE) || (needtype == TOK_NUMBER && @@ -1611,6 +1610,14 @@ static bool if_condition(Token * tline, enum preproc_token ct) } break; + case PPC_IFEMPTY: + t = tline = expand_smacro(tline); + while (tok_type_(t, TOK_WHITESPACE)) + t = t->next; + + j = !t; /* Should be empty */ + break; + case PPC_IF: t = tline = expand_smacro(tline); tptr = &t; |