Is there a way to see what a macro gets expanded to?
I tried to put it in quotes and use printf, but of course printf just printed exactly the string.
The result of:
#define SetMacro(name,type) \
virtual void Set##name (type _arg)
int main()
{
printf("SetMacro(Test, int)");
}
is SetMacro(Test,int)
.
What I want to see is: virtual void SetTest(int _arg)
.
Is this possible?
Thanks!
Dave