Possible Duplicate:
Macro for concatenating two strings in C
I have a function that looks something like this:
bool module_foo_process(void* bar) { return doMagic(bar); }
Now, I'd like to generate it with a macro. For instance, the macro for the above function would look like this:
MY_AMAZING_MACRO(foo)
This allows me to write something like:
MY_AMAZING_MACRO(awesome)
and get this:
bool module_awesome_process(void* bar) { return doMagic(bar); }
Any ideas on how this can be accomplished in C?