Is there a way to find out the preprocessor in c++ code, e.g. NDebug, NOMAXMIN, etc?
I can do something like
#ifdef _DEBUG
std::cout << "in debug mode";
#else
std::cout << "in release mode";
#endif
but there are so many preprocessors and colleagues can also define their own.
I'm using Microsoft Visual Studio to write C++ code, not gcc.