I have some code in a project which should never be used in the release build, but is useful when testing. I\'d like to do something like this:
#ifdef DEBUG
I usually add my -DDEBUG=1 to the OTHER_C_FLAGS section in my XCode 4 project's build settings.
-DDEBUG=1
And yes, they can even discriminate between Debug / Release / ADHOC / Store builds.