Skip to content

Commit

Permalink
Merge pull request #632 from gassmoeller/track_debug_mode
Browse files Browse the repository at this point in the history
Record debug mode
  • Loading branch information
MFraters authored Feb 16, 2024
2 parents 5a44151 + 1aaa45b commit 53722a3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/world_builder/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
#define WORLD_BUILDER_VERSION_PATCH @WORLD_BUILDER_VERSION_PATCH@
#define WORLD_BUILDER_VERSION_LABEL @WORLD_BUILDER_VERSION_LABEL@

#ifndef NDEBUG
#define WORLD_BUILDER_DEBUG_MODE
#endif

/**
* Returns true if the used World Builder version is greater or equal than the
* version specified by the three arguments. The internal implementation
Expand Down Expand Up @@ -55,6 +59,13 @@ namespace WorldBuilder
const std::string GIT_BRANCH = "@GIT_BRANCH@";
const std::string GIT_DATE = "@GIT_DATE@";
const std::string GIT_COMMIT_SUBJECT = "@GIT_COMMIT_SUBJECT@";

const std::string BUILD_TYPE =
#ifdef WORLD_BUILDER_DEBUG_MODE
"Debug";
#else
"Release";
#endif
}

namespace Data
Expand Down

0 comments on commit 53722a3

Please sign in to comment.