scc

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

0263-macro.c (146B)


      1 typedef int cc;
      2 
      3 #define cc(cc, ...) for(__VA_ARGS__) cc += 2;
      4 
      5 int
      6 main(void)
      7 {
      8 	int i, c = 0;
      9 
     10 	cc (c, i = 0; i < 3; i++)
     11 
     12 	return !(c == 6);
     13 }