Dump the current token in skip(), when it's not the expected token
This commit is contained in:
parent
62ba135228
commit
900871ca8d
1 changed files with 1 additions and 1 deletions
2
tccpp.c
2
tccpp.c
|
@ -90,7 +90,7 @@ static void macro_subst(
|
|||
ST_FUNC void skip(int c)
|
||||
{
|
||||
if (tok != c)
|
||||
error("'%c' expected", c);
|
||||
error("'%c' expected (got \"%s\"", c, get_tok_str(tok, NULL));
|
||||
next();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue