Permalink
Browse files

Add version flags for debug, git, and Windows

  • Loading branch information...
1 parent 784683a commit 67bd2c6b2da0d66dc7874dabbc8c9d2136efeb94 @Adam- Adam- committed Dec 19, 2012
Showing with 17 additions and 1 deletion.
  1. +17 −1 src/misc.cpp
View
@@ -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; }

0 comments on commit 67bd2c6

Please sign in to comment.