Hi guys
Is there a nice simple way to just do a;
if in debug mode then
code
else
other code
?
i’m pretty sure I have seen this kind of thing somewhere but I cannot seem to find an example with it
cheers for any help
Hi guys
Is there a nice simple way to just do a;
if in debug mode then
code
else
other code
?
i’m pretty sure I have seen this kind of thing somewhere but I cannot seem to find an example with it
cheers for any help
Take a look at the docs
[code] #If DebugBuild Then
#Else
#Endif
#If TargetWin32 Then
#ElseIf TargetMacOS Then
#Else
#Endif[/code]
cheers i know it was simple and I searched in the language guide but failed to find anything
you can also use DebugBuild in regular code, e.g.
if DebugBuild then
foo
else
bar
end if
Doesn’t have to use #pragmas
[quote=121900:@Michael Diehr]you can also use DebugBuild in regular code, e.g.
if DebugBuild then
foo
else
bar
end if
Doesn’t have to use #pragmas[/quote]
Just FYI the using it this way leaves the debug code in
#if debug build
Will make it be stripped out when not doing debuts