Preprocessor to tell debug and release scheme apart

I’m using xcode, and find it pleasant to use the degug scheme for testing and the release scheme for the actual project. Therefor i also want to be able to separate the settings.

Until now, i’ve been solving this issue as follows:
I added IS_DEBUG to Build Settings > Preprocessor Macros > Debug. (See my post on ofLog)

Now i can use it like this:

#ifndef IS_DEBUG  
    // Load Settings when in productive setup  

Is there a oF way of solving this issue?


this differs from compiler to compiler but I don’t think for xcode we have any set up. you can add them under pre-processor macros in the build settings. I think it’s definitely useful to add – not sure if we could get it in across all compilers but seems worth investigating.