This is what I'm trying to do: I want to set a function name based on a preprocessor definition. This is my current code:
I want PLUGLOC to be defined based on the preprocessor definition PCSXRPLUG, set at the command line. But what I'm getting is PCSXRPLUG_locale_text regardless of what PCSXRPLUG is. If I'm doing it wrong, how do I do it right?
Code:
#define PLUGLOC PCSXRPLUG ## _locale_text
extern char* PLUGLOC(char* toloc);