From b5c3bcaef9f80ad87274f26a2b24ce5c13157649 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 14 Dec 2008 10:42:40 +0000 Subject: [PATCH] Simplify eat() macro. [r24653] --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1