mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-17 05:20:08 +08:00
tccpp.c: unterminated macro argument error message
#define a(x) x a(( would produce "error: , expected" when what's actually expected is a ')'.
This commit is contained in:
parent
2f90db434e
commit
823d0583dc
2
tccpp.c
2
tccpp.c
@ -2977,6 +2977,8 @@ static int macro_subst_tok(TokenString *tok_str,
|
|||||||
tok_str_add2(&str, tok, &tokc);
|
tok_str_add2(&str, tok, &tokc);
|
||||||
next_nomacro_spc();
|
next_nomacro_spc();
|
||||||
}
|
}
|
||||||
|
if (parlevel)
|
||||||
|
expect(")");
|
||||||
str.len -= spc;
|
str.len -= spc;
|
||||||
if (str.len == 0)
|
if (str.len == 0)
|
||||||
tok_str_add(&str, TOK_PLCHLDR);
|
tok_str_add(&str, TOK_PLCHLDR);
|
||||||
|
Loading…
Reference in New Issue
Block a user