scc

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

0224-macro.c (415B)


      1 #define _PROTOTYPE(x, y) x y
      2 
      3 _PROTOTYPE(int fun, (char *s, int n, const char *format,
      4                                                   char *arg)    );
      5 _PROTOTYPE(int fun, (char *s, int n, const char *format, char *arg)    );
      6 _PROTOTYPE(int fun, (char *s, int n, const char *format, char
      7 	*arg)    );
      8 
      9 int
     10 fun(char *s, int n, const char *format, char *arg)
     11 {
     12 	return 0;
     13 }
     14 
     15 int
     16 main()
     17 {
     18 	return fun(0, 0, 0, 0);
     19 }