acidrainstudios / TrueReality

True Reality (TR) is an open source LGPL Game and Simulation Engine written entirely in Standard C++ and OpenGL. It runs on all Windows platforms and GNU/Linux. OpenSceneGraph is used as its graphics engine, along with many other open source projects for support of various features.
GNU Lesser General Public License v3.0
12 stars 7 forks source link

Replace the use of #ifdef _DEBUG #103

Closed DieSlower closed 5 years ago

DieSlower commented 5 years ago

Using the Debug define makes debugging and release code compile to different binaries. This needs to be changed by making this binary switch footprint as small as possible and isolated in a predefined header. The header should define a bool. The rest of the code should use the bool to determine if we are in Debug or Release mode