This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Way to tell in libcpp if something is a macro...


Greetings,

I have a situation where I would like to detect if a string is a currently defined macro.

Something like a

  bool cpp_is_macro(const unsigned char *);

would be great.

Or perhaps I could construct something from the string and test that.

If something like this doesn't exist does anyone have some pointers on how to make one for libcpp.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]