1. Can a C++ program tell in which mode it was built, i.e. debug or release?

Code:
#if BUILD_MODE == DEBUG
#endif
2. Can I access the compile macros, e.g. $(ConfigurationName), from the code?