scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

0176-macro.c (223B)


      1 #ifdef __STDC__
      2 #define __(proto) proto
      3 #else
      4 #define __(proto) ()
      5 #endif
      6 
      7 extern int func __((int, int));
      8 
      9 int
     10 main()
     11 {
     12 	int (*fun)(int,int) = func;
     13 
     14 	return (*func)(1, 2);
     15 }
     16 
     17 int
     18 func(int a, int b)
     19 {
     20 	return a - b - 1;
     21 }