So, it's been a while since I have written anything in C++ and now I'm working on a project using C++11 and macros.
I know that by using the stringify operator I can do this:
#define TEXT(a) #a //converts to "a"
How am I supposed to use the preprocessor for recognizing the tokens like + and * to do this:
#define TEXT(a)+ ??? //want to convert to "a+"
#define TEXT(a)* ??? //want to convert to "a*"
when the input has to be in that syntax?
Aucun commentaire:
Enregistrer un commentaire