Dump the current token in skip(), when it's not the expected token

master
Detlef Riekenberg 2010-01-27 00:02:33 +01:00 committed by Detlef Riekenberg
parent 62ba135228
commit 900871ca8d
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}