- or download this
#define CFG_USED(type, name, stuff) \
{ .compFunc = compare_ ## type; /* */ },
...
#else
#define CFG_USE_int CFG_UNUSED
#endif
- or download this
/tmp>cat testing.c
#include <stdio.h>
...
/tmp>
- or download this
static foo compare_foo(void *a, void *b) { return _inline_cmpfunc_foo(
+a, b); }
- or download this
#define CFG_ADD(TYPE,NAME,STUFF) \
static int compare_ ## NAME(const void * a, const void * b) \
{ \
return _inline_cmpfunc_ ## TYPE(a,b); \
}