Conditional compiling?

BlitzMax Forums/BlitzMax Programming/Conditional compiling?

John Pickford(Posted 2010) [#1]
Is there any way to set your own conditions in addition to the built in ones?

I know I can use IF\THEN with a constant but that's not quite the same functionality.


Brucey(Posted 2010) [#2]
Not currently, no.


JazzieB(Posted 2010) [#3]
The other problem with using a constant with If/Then is that the code between still gets compiled into the final executable. I tested this with some text between and it still appeared in the final file. However, this was with a much older version of BlitzMax, so it may have changed since.

Blitz3D did not do this and omitted anything that would never get executed.


John Pickford(Posted 2010) [#4]
Really? I was under the impression that the code didn't get compiled.