Build different version?

BlitzMax Forums/BlitzMax Beginners Area/Build different version?

MOBii(Posted 2016) [#1]
I can make code for debugging ONLY:
?Debug
	DebugLog "For Debug Mode ONLY"
?



Can I make my own
Const version_A:Int = 1
?version_A
	DebugLog "For Debug Mode A ONLY"
?

[code]?version_B
	DebugLog "For Debug Mode B ONLY"
?
I want to make one version faster by exclude code Not adding more If
(This is Not working!)


RustyKristi(Posted 2016) [#2]
I think this is the part you're looking for..

https://github.com/bmx-ng/bmk/blob/master/bmk_modutil.bmx#L423-L648

starting from line 443 you can see the ? block being parsed

..you have to modify and build your own bmk, if you know what you're doing it's possible and it's all there..


Derron(Posted 2016) [#3]
No this is not possible.


you will have to do

if version_A
...
else
...
endif


Or you put that code in two individual include files and then just have to adjust the single "include bla" line when trying out things.



bye
Ron