Allow empty macro arguments

This commit is contained in:
Rui Ueyama 2020-03-30 10:39:35 +09:00
parent b9ad3e43cf
commit dd4306cdd8
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}