From 900871ca8daf805e3c3a90634b07a9d56e4fd8bb Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Wed, 27 Jan 2010 00:02:33 +0100 Subject: [PATCH] Dump the current token in skip(), when it's not the expected token --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccpp.c b/tccpp.c index f6f8a6a5..09ff7cf6 100644 --- a/tccpp.c +++ b/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(); }