Here's what I tried:
1. Create a custom constant called #DebugLog and click "Add".
2. Now #DebugLog appears in the Custom Constants list.
In my code, I have
Code: Select all
CompilerIf #DebugLog
CompilerError "Debug log is on"
CompilerElse
CompilerError "Debug log is off"
CompilerEndIf
So next I tried this:
Code: Select all
#DebugLog = 0
CompilerIf #DebugLog
CompilerError "Debug log is on"
CompilerElse
CompilerError "Debug log is off"
CompilerEndIf
So my question is how am I supposed to properly use the Compiler Custom Constant ? I was hoping to define it as a Compiler Custom Constant and then enable/disable it from the compiler options.
Thank you.