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

This commit is contained in:
Detlef Riekenberg 2010-01-27 00:02:33 +01:00 committed by Detlef Riekenberg
parent 62ba135228
commit 900871ca8d

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