Simplify eat() macro.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 14 Dec 2008 10:42:40 +0000 (10:42 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 14 Dec 2008 10:42:40 +0000 (10:42 +0000)
[r24653]

parser.c

index c5a9e8e..fb9f02d 100644 (file)
--- 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.