Custom preprocessor constants
Monkey Forums/Monkey Programming/Custom preprocessor constants
| ||
Would it be possible for us to get custom preprocessor constants? By this I mean: #Define FOO = "bar" #If FOO = "bar" ' code here #End And possibly an abbreviated version which defaults to "TRUE" #Define FOO #If FOO ' code here #End #If Not FOO ' code here #End If the constant doesn't exist, assume it is "FALSE", so the If Not FOO will pass. |
| ||
To add to this I'd love to see Debug/Release preprocessor constants also. |
| ||
@dopeyrulz: I noticed this in mojo/graphics.monkey the other day:#If CONFIG="debug" ... #End |
| ||
Cool - thanks Skid! |
| ||
Ah - thanks Skid! |