#define a(x) x a(( would produce "error: , expected" when what's actually expected is a ')'.
Unified · Split
| @@ -2977,6 +2977,8 @@ static int macro_subst_tok(TokenString *tok_str, · 2976 unmodified lines | |||
| 2977 | tok_str_add2(&str, tok, &tokc); | 2977 | tok_str_add2(&str, tok, &tokc); |
| 2978 | next_nomacro_spc(); | 2978 | next_nomacro_spc(); |
| 2979 | } | 2979 | } |
| 2980 | if (parlevel) | ||
| 2981 | expect(")"); | ||
| 2980 | str.len -= spc; | 2982 | str.len -= spc; |
| 2981 | if (str.len == 0) | 2983 | if (str.len == 0) |
| 2982 | tok_str_add(&str, TOK_PLCHLDR); | 2984 | tok_str_add(&str, TOK_PLCHLDR); |