diff options
author | Adam <Adam@anope.org> | 2012-12-19 09:21:25 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-12-19 09:21:25 -0500 |
commit | 67bd2c6b2da0d66dc7874dabbc8c9d2136efeb94 (patch) | |
tree | f2394311b801c488ab0e2c525ff87ce4d7b067a3 /src/misc.cpp | |
parent | 784683a68dc3882f9507b9d304f4adf10fb403ae (diff) |
Add version flags for debug, git, and Windows
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 3f74888ee..93aae54a6 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -582,7 +582,23 @@ Anope::string Anope::VersionShort() Anope::string Anope::VersionBuildString() { - return "build #" + stringify(BUILD) + ", compiled " + Anope::compiled; + Anope::string s = "build #" + stringify(BUILD) + ", compiled " + Anope::compiled; + Anope::string flags; + +#ifdef DEBUG_BUILD + flags += "D"; +#endif +#ifdef VERSION_GIT + flags += "G"; +#endif +#ifdef _WIN32 + flags += "W"; +#endif + + if (!flags.empty()) + s += ", flags " + flags; + + return s; } int Anope::VersionMajor() { return VERSION_MAJOR; } |