GNU Radio 3.5.1 C++ API
|
00001 /* 00002 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische 00003 * Universitaet Berlin. See the accompanying file "COPYRIGHT" for 00004 * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. 00005 */ 00006 00007 /*$Header$*/ 00008 00009 #ifndef PROTO_H 00010 #define PROTO_H 00011 00012 #if __cplusplus 00013 # define NeedFunctionPrototypes 1 00014 #endif 00015 00016 #if __STDC__ 00017 # define NeedFunctionPrototypes 1 00018 #endif 00019 00020 #ifdef _NO_PROTO 00021 # undef NeedFunctionPrototypes 00022 #endif 00023 00024 #undef P /* gnu stdio.h actually defines this... */ 00025 #undef P0 00026 #undef P1 00027 #undef P2 00028 #undef P3 00029 #undef P4 00030 #undef P5 00031 #undef P6 00032 #undef P7 00033 #undef P8 00034 00035 #if NeedFunctionPrototypes 00036 00037 # define P( protos ) protos 00038 00039 # define P0() (void) 00040 # define P1(x, a) (a) 00041 # define P2(x, a, b) (a, b) 00042 # define P3(x, a, b, c) (a, b, c) 00043 # define P4(x, a, b, c, d) (a, b, c, d) 00044 # define P5(x, a, b, c, d, e) (a, b, c, d, e) 00045 # define P6(x, a, b, c, d, e, f) (a, b, c, d, e, f) 00046 # define P7(x, a, b, c, d, e, f, g) (a, b, c, d, e, f, g) 00047 # define P8(x, a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g, h) 00048 00049 #else /* !NeedFunctionPrototypes */ 00050 00051 # define P( protos ) ( /* protos */ ) 00052 00053 # define P0() () 00054 # define P1(x, a) x a; 00055 # define P2(x, a, b) x a; b; 00056 # define P3(x, a, b, c) x a; b; c; 00057 # define P4(x, a, b, c, d) x a; b; c; d; 00058 # define P5(x, a, b, c, d, e) x a; b; c; d; e; 00059 # define P6(x, a, b, c, d, e, f) x a; b; c; d; e; f; 00060 # define P7(x, a, b, c, d, e, f, g) x a; b; c; d; e; f; g; 00061 # define P8(x, a, b, c, d, e, f, g, h) x a; b; c; d; e; f; g; h; 00062 00063 #endif /* !NeedFunctionPrototypes */ 00064 00065 #endif /* PROTO_H */