1 #ifndef gnu
2 # define gnu_inline __attribute__((gnu_inline)) inline
3 #endif
4 
5 #define declspec(spec, name) spec int name (void)
6 #ifdef IN_CLASS
7 # define decl(spec, name)
8 #else
9 # define decl(spec, name) defpfx declspec(spec, name);
10 #endif
11 #define def(spec, name, ret) defpfx declspec(spec, name) { return ret; }
12 #define gnuindef(name, ret) def(gnu_inline, name, ret)
13 
14 #ifndef pfx
15 # ifdef IN_CLASS
16 #  define pfx(x) IN_CLASS::x
17 # else
18 #  define pfx(x) x
19 # endif
20 #endif
21 
22 #ifndef defpfx
23 # define defpfx
24 #endif
25