[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: [cfe-dev] Finding Macro Argument Value
From: Uri Mann <umann () symantec ! com>
Date: 2015-07-31 5:29:13
Message-ID: 6C149CB0AE53E944A358EC6730D07C7442DE10C058 () TUS1XCHEVSPIN35 ! SYMC ! SYMANTEC ! COM
[Download RAW message or body]
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
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic