checking debug mode

BlitzMax Forums/BlitzMax Programming/checking debug mode

rdodson41(Posted 2005) [#1]
Is there any variable that will be set if a prog is running in debug mode? A variable that is set to true when in debug mode and false when normal.


Perturbatio(Posted 2005) [#2]
use the [a http://www.blitzwiki.org/index.php/Category:Compiler_Directives]compiler directive[/a] ?Debug


rdodson41(Posted 2005) [#3]
Thanks! By the way, it would be really nice if Blitz had some more comp directives such as C-like macros and conditional include and stuff. Wouldn't have to waste memory on all those constants.


Perturbatio(Posted 2005) [#4]
suggestions to this effect have been made in the past. I doubt they're high on the list of priorities at the moment.


StuC(Posted 2005) [#5]
Those few constants are harldy going to effect anything. You will not even see a 'memory usage' difference in taskmanager, process explorer, etc if you enable or disable them.

Cheers,

Stu