Get configuration name

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HuEl_264296
Level 5
Level 5
First like given 25 sign-ins First solution authored

It's it possible for the code to find out the name of the build configuration that's being used. I know I can #ifdef NDEBUG to detect of this build is the debug one or not, but what if there was a third configuration. It's there some way the code could get the name of the configuration as a string. I.e "debug" or "release", etc.? Many thanks

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

just use

   

#ifdef DEBUG

   

const char Configuration[] = "Debug";

   

#endif

   

 

   

Bob

View solution in original post

0 Likes
5 Replies