BekTek wrote in news:eHqpd.10493$1B2.9761@trnddc02 in comp.lang.c++:
Hi all..
Is there a way taking the preprocessed output?
Some large libraries has huge #ifden .. #endif clauses..
It gets so hard to read.
I would be easier if take the clauses out...
Usually your compiler will have an option to just "preprocess"
its input often this is a -E option that either writes the
preprocessed output to stdout or to a file. Check you compilers
documentation or help (-h, -?, --help maybe).
Note it doesn't really make the code esier to read as you'll often
get a huge file with a lot of blank lines in it, and macro's expanded
on one huge line.
But at least you get see exactly what the compiler gets to see with
all the stuff it ignores removed.
HTH.
Rob.
--
http://www.victim-prime.dsl.pipex.com/