[GCC-XML] feature request: preprocessor output

Roman Yakovenko roman.yakovenko at gmail.com
Thu Mar 27 14:35:23 EDT 2008


On Thu, Mar 27, 2008 at 4:54 PM, Francesco Montorsi
<f18m_cpp217828 at yahoo.it> wrote:
> Brad King ha scritto:
>
> > Francesco Montorsi wrote:
>  >> Specifically, for what I'm developing I need to know only #defined
>  >> values, not #defined macros. So I guess I'll grep the sources for
>  >> "#define" and then parse the results...
>  >
>  > In that case, try running
>  >
>  >   gccxml -E -dM input.cxx
>  thanks! that's much better than grepping ;)

If all you need is to work with defines, than I suggest Boost.Wave
http://www.boost.org/libs/wave/doc/preface.html

I think this is the tool you need

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the gccxml mailing list