DEBUG Variable?

Blitz3D Forums/Blitz3D Programming/DEBUG Variable?

Picklesworth(Posted 2005) [#1]
I seem to have a variable/operator/something in blitz called DEBUG...
According to Blitz, it is not a function, but it gets highlighed. When accessed as a variable, it seems to always equal 0.
Graphics 640,480,0,2
While Not KeyDown(1)
	i = DEBUG
	Print "??? "+i
Wend
End

What the heck is this?


Edit:
It's not a function for sure - I can change its value with DEBUG=n
Further testing tells me that it is an integer, because it will automatically convert from a float to an integer, and when I try to give it a string value it will just equal 0.

Edit again:
My bad. Still weird, but I thought it was only an integer because I suddenly forgot at the time to define the variable...
Still weird though; why would it be highlighted?


D4NM4N(Posted 2005) [#2]
my blitz doesnt (highlight that is)


Picklesworth(Posted 2005) [#3]
I can't find it in any userlibs (and I don't see how it could be anyway).
The plot thickens.


WolRon(Posted 2005) [#4]
You must have a userlib active that's causing it to highlight.


Michael Reitzenstein(Posted 2005) [#5]
Hehe, or be running my preprocessor. Try this:

#IfDef DEBUG
#CompilerError Running in Debug!
#Else
#CompilerError Running in Release!
#EndIf



Picklesworth(Posted 2005) [#6]
Well I guess that's it :)

Exactly what I wanted too!
That'll speed up my exiting of my program during testing by loads!