This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Way to tell in libcpp if something is a macro...
- From: Ed Smith-Rowland <3dw4rd at verizon dot net>
- To: gcc-patches <gcc at gcc dot gnu dot org>
- Date: Wed, 26 Jun 2013 11:51:12 -0400
- Subject: 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.