Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Calexus on December 06, 2011, 10:27:31 am

Title: Post-preprocessor view?
Post by: Calexus on December 06, 2011, 10:27:31 am
Is there a view or setting or something that allows you to see a what a source file would like after the preprocessor has been executed? And yes I know we can generate files like that. But is there a feature like that in codeblocks, to simply switch to a post preprocessor view of a file?
Title: Re: Post-preprocessor view?
Post by: oBFusCATed on December 06, 2011, 10:33:43 am
No there is not such feature as far as I know.
Title: Re: Post-preprocessor view?
Post by: Calexus on December 06, 2011, 10:44:40 am
Thats what I figured but it never hurt to ask ;) Thanks for a quick response oBFusCATed. I might make a feature request out of this or even try to implement it my self in the future. Not that it's of great importance, but it could be convenient to have such a feature.
Title: Re: Post-preprocessor view?
Post by: oBFusCATed on December 06, 2011, 11:41:15 am
I needed it only once, when porting some macro magics from windows to linux.
You can make a tool for this. It is the easiest way I can think of. But it will work with only one compiler.