Conditional compiling possible?

Is it possible to compile a game conditioned? Example:
- Code: Select all
#define DEBUG
#ifdef DEBUG
// some debug code
#else
// other code
#endif