Macro Take String with comma?

Viewed 13

So if I have a macro like this (simplified example)

#define LOG(TYPE) LOG_STUFF(TYPE, #TYPE);

I want to use it like this

LOG(TMap<int32, int32>);

So #TYPE should become "TMap<int32, int32>" but instead it becomes "TMap<int32" and comma is taken as next parameter. Can I fix this or do I have to pass string manually?

0 Answers
Related