I have 2 targets on my project one production and one stage with different configurations. I want in the code to be able to say
#if target == production NSL
You can define some Preprocessor Macros for each Target, like this...
And then you can do something like this:
#ifdef PRODUCTION //some Code #elif STAGE //some other Code #else //more Code^^ #endif
But be carefull if you need it in Debug- and/or in Release-Build, you have to declare it there.