Author Topic: Post-preprocessor view?  (Read 2874 times)

Offline Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
Post-preprocessor view?
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Post-preprocessor view?
« Reply #1 on: December 06, 2011, 10:33:43 am »
No there is not such feature as far as I know.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Post-preprocessor view?
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Post-preprocessor view?
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]