3 Jan
2011
3 Jan
'11
7:32 p.m.
On 01/03/11 12:44, Hossein Haeri wrote: [snip]
2) Preprocess the code first and compile it.
Hmmm... How do I do that?
Use cpp, or, if the compiler is g++, use -E and capture the output, or use, IIRC, the flag -save-temps, which would save the preprocessed code in X.i where the compiled source is X.cpp, for any filename, X. If you want something readable, then I'd recommend passing the output from the above step through some reformatting program like indent on linux. HTH. -Larry