From dd4306cdd8158f76f094fc699530311228536adb Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 30 Mar 2020 10:39:35 +0900 Subject: [PATCH] Allow empty macro arguments --- test/macro.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/macro.c b/test/macro.c index c6508b1..d445ba5 100644 --- a/test/macro.c +++ b/test/macro.c @@ -213,6 +213,9 @@ int main() { #define M8(x,y) (x)*(y) assert(63, M8(3+4, 4+5), "M8(3+4, 4+5)"); +#define M8(x,y) x y + assert(9, M8(, 4+5), "M8(, 4+5)"); + printf("OK\n"); return 0; }