From: Christoph Mallon Date: Sun, 14 Dec 2008 10:42:40 +0000 (+0000) Subject: Simplify eat() macro. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b5c3bcaef9f80ad87274f26a2b24ce5c13157649;p=cparser Simplify eat() macro. [r24653] --- diff --git a/parser.c b/parser.c index c5a9e8e..fb9f02d 100644 --- a/parser.c +++ b/parser.c @@ -749,7 +749,7 @@ static void eat_block(void) next_token(); } -#define eat(token_type) do { assert(token.type == (token_type)); next_token(); } while (0) +#define eat(token_type) (assert(token.type == (token_type)), next_token()) /** * Report a parse error because an expected token was not found.