drives me crazy that i can't get his to work
--
View this message in context:
http://old.nabble.com/passing--define-d-values-to--define-d-macros-tp29815182p29815215.html
Sent from the gcc - Dev mailing list archive at Nabble.com.
i can seem to get this to work:
#define PREFIX "p_"
#define HIGHER_INTERFACE(id) LOWER_INTERFACE(PREFIX, id)
#define LOWER_INTERFACE(prefix, id) struct prefix##id \
{ \
int i; \
}
int main(void)
{
HIGHER_INTERFACE(0);
/* test if struct declaration went well: */
struct p_0 var;
i've been writing bits of codes where it requires to have an array or
"pointers to functions", so the decision of which function to execute is
indexed... (i know, a lot of you will say "well, that's a VERY specific of a
solution, there's always the problem of binary compatibility when passing
argu