[cfe-dev] Finding Macro Argument Value
Uri Mann
umann at symantec.com
Thu Jul 30 22:29:13 PDT 2015
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
More information about the cfe-dev
mailing list