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.
Try it with ?IFDEF
There does seem to be a bug with ?IF
Thanks. That works well.
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.