xref: /Universal-ctags/Units/parser-c.r/macros.c.d/input.c (revision 5034839d3d91cb90f96ab76e2db387872a2605de)
1 #define VARIABLE_LIKE	some_value
2 #define FUNCTION_LIKE(a,b)  (a + b)
3 #pragma weak WeakSymbol = StrongSymbol
4 
5 /* handling of spoofing macros */
6 DECL1(foo); /* gcc will accept this as function prototype (with some warnings) */
7 MACRO2(bar);
8 DECL3(x, y); /* gcc will accept this as function prototype (with some warnings) */
9 
10 void prototype1 __ARGS((int arg1, void *arg2));
prototype2(int arg1,void * arg2)11 void prototype2 __ARGS((int arg1, void *arg2))
12 {
13 }
14 #undef FUNCTION_LIKE
15 #undef VARIABLE_LIKE
16