Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add version flags for debug, git, and Windows

  • Loading branch information...
commit 67bd2c6b2da0d66dc7874dabbc8c9d2136efeb94 1 parent 784683a
@Adam- Adam- authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 src/misc.cpp
View
18 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; }
Please sign in to comment.
Something went wrong with that request. Please try again.