On Thu, Jul 30, 2015 at 10:29 PM, Uri Mann <umann@symantec.com> wrote:
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.
 
Thanks in advance.
-Uri


_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev