Fix macro expansion of empty args.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
Reimar Döffinger
2015-01-18 22:00:10 +01:00
parent a6149c6dbb
commit fb6331e0fa
4 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,9 @@
#include <stdio.h>
#define T(a,b,c) a b c
int main(void)
{
printf("%d", T(1,+,2) T(+,,) T(,2,*) T(,7,) T(,,));
return 0;
}