1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| #include <stdio.h>
# define AUTOMATIC
# define TYPEDEF
# define STATIC static
# define FUNC(rettype, memclass) memclass rettype
# define FUNC_P2CONST(rettype, ptrclass, memclass) const rettype ptrclass * memclass
# define FUNC_P2VAR(rettype, ptrclass, memclass) rettype ptrclass * memclass
# define P2VAR(ptrtype, memclass, ptrclass) ptrtype ptrclass * memclass
# define P2CONST(ptrtype, memclass, ptrclass) const ptrtype ptrclass * memclass
# define CONSTP2VAR(ptrtype, memclass, ptrclass) ptrtype ptrclass * const memclass
# define CONSTP2CONST(ptrtype, memclass, ptrclass) const ptrtype ptrclass * const memclass
# define P2FUNC(rettype, ptrclass, fctname) rettype ( * ptrclass fctname)
# define CONST(type, memclass) memclass const type
# define VAR(vartype, memclass) memclass vartype
#define myCode_1 #define MAIN_C FUNC(void,myCode_1) myCode_PrintFun( CONSTP2CONST(char,myCode_1,MAIN_C) );
int main(void) { myCode_PrintFun("abcdef"); return 0; }
FUNC(void,myCode_1) myCode_PrintFun( CONSTP2CONST(char,myCode_1,MAIN_C) iString) { printf("%s\n",iString); }
|