scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

0069-funclikemacro.c (131B)


      1 #define A 3
      2 #define FOO(X,Y,Z) X + Y + Z
      3 #define SEMI ;
      4 
      5 int
      6 main()
      7 {
      8 	if(FOO(1, 2, A) != 6)
      9 		return 1 SEMI
     10 	return FOO(0,0,0);
     11 }