Go to the goal you want to test, then make settings and search for preprocessing, and you will see the following:

As you can see, debug already matters. You can enter RELEASE = 1 if you want to check the release build. Then, in your code, a drop in the if statement follows:
#if DEBUG==1 // do debug build settings stuff there #endif #if RELEASE==1 // do release build settings stuff there #endif
Steve moser
source share