views:

11

answers:

1

Basically, when I select the "Debug" configuration, the DEBUG constant is active. When I select the "Release" configuration, the DEBUG constant is inactive.

How can I create my own configurations so that they include my own defined constants. Basically, I want it so that if I select the configuration "FOOBAR" that there is a constant FOO and BAR in my project active.

I'm basically trying to avoid putting in a bunch of #define FOO in my projects, then commenting/uncommenting them out when I need/don't need them.

+1  A: 

According to this article you can define compilation constants in the build tab of your project properties.

EDITED: To define build configurations you can go to Build > Configuration manager and I think you can define compilation constants there too.

GôTô
Ah ok. One question though, how do you define multiple constants? Basically, what's the separator?
myermian
@myermian: I'd try semicolon `;`
GôTô