I'm trying to find the value of an argument for function type macro. Example:
#define DCLR_INT( x ) int x
DCLR_INT( I ) = 5;
I have a chained PPCallbacks class which overrides PPCallbacks::MacroExpands(). Enumerating tokens for the MacroInfo class representing DCLR_INT allows me to see the token 'x'. How do I find the value of 'x' (i.e. 'i')?
Thanks in advance.
-Uri
I'm trying to find the value of an argument for function type macro.
Example:
#define DCLR_INT( x ) int x
DCLR_INT( I ) = 5;
I have a chained PPCallbacks class which overrides
PPCallbacks::MacroExpands(). Enumerating tokens for the MacroInfo class
representing DCLR_INT allows me to see the token 'x'. How do I find the
value of 'x' (i.e. 'i')?
That should be in the MacroArgs parameter to MacroExpands.