I need to replace
GET(\"any_name\")
with
String str_any_name = getFunction(\"any_name\");
The hard part is ho
One approach is not to quote the name when you call the macro:
#include #define GET( name ) \ int int##name = getFunction( #name ); \ int getFunction( char * name ) { printf( "name is %s\n", name ); return 42; } int main() { GET( foobar ); }