1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 13:46:38 +02:00

Add version flags for debug, git, and Windows

This commit is contained in:
Adam
2012-12-19 09:21:25 -05:00
parent 784683a68d
commit 67bd2c6b2d
+17 -1
View File
@@ -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; }