Custom compiler directives
Mightor
Posts: 338
Hello there,
I am looking to implement conditional compiler directives in my code, i.e. something like this:
This way I won't need to delete any of those statements when the time comes I want to compile it without all those debug statements. I tried the above and it didn't work (otherwise I wouldn't have posted here, of course, hehe).
Is there a way to do this?
Gr,
Mightor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
| What the world needs is more geniuses with humility, there are so few of us left.
I am looking to implement conditional compiler directives in my code, i.e. something like this:
' ${__DEBUG__ 1} #IF ($__DEBUG__ = 1) #THEN ' Debugging code DEBUG "hello world", CR #ENDIF
This way I won't need to delete any of those statements when the time comes I want to compile it without all those debug statements. I tried the above and it didn't work (otherwise I wouldn't have posted here, of course, hehe).
Is there a way to do this?
Gr,
Mightor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
| What the world needs is more geniuses with humility, there are so few of us left.
Comments
-Phil
Perfect, thanks!
Gr,
Mightor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
| What the world needs is more geniuses with humility, there are so few of us left.