GLBasic forum

Main forum => Bug Reports => Topic started by: Wampus on 2012-Mar-24

Title: ?IF GLB_DEBUG fails to compile if debug mode isn't on
Post by: Wampus on 2012-Mar-24
Hi

When I try to compile code with the line ?IF GLB_DEBUG the code works fine when debug mode is turned on. When I try to compile without debug mode I get the following error message: error : syntax error : ... lb_debug

Its as if ?IF GLB_DEBUG has been changed to ?IF glb_debug. The change of case will cause the same error whether or not debug mode is on.
Title: Re: ?IF GLB_DEBUG fails to compile if debug mode isn't on
Post by: MrTAToad on 2012-Mar-24
Try it with ?IFDEF

There does seem to be a bug with ?IF
Title: Re: ?IF GLB_DEBUG fails to compile if debug mode isn't on
Post by: Wampus on 2012-Mar-24
Thanks. That works well.
Title: Re: ?IF GLB_DEBUG fails to compile if debug mode isn't on
Post by: Kitty Hello on 2012-Mar-28
the "bug" is, that the ?IF command will do a computation after replacing the defined variables. But GLB_DEBUG is not defined as 0 for release version, so you get the math-library error.