I need to define a new constant in Visual Studio.
I explain: I have a custom Compile Configuration (sorry I’m not sure the name is exact, I have a localized version of VS), and I need to define another constant besides the TRACE and DEBUG ones.
How can I do it?
You can do it in two ways:
in the top of one of your code files, write the line:
#define MYCONSTANT
then elsewhere within the same file you can refer to it with code like