Sorry for not being explicit, but you'll understand this question is difficult to sum up:
I want to write a macro that can replace abcd with "abcd" , that is transforming this line:
cout << STRING(abcd);
cout << "abcd";
Please note that this absolutly needs to be a macro. So, no functions, no inline functions and so on.
thanks by advance :-)
PS: I have already tried:
#define STRING(X) "X" // I knew it wouldn't work, but well... I tried it anyway
#define STRING(X) \"X\" // It could have worked, but the compiler didn't agree for some reason...