mirror of
https://github.com/anope/anope.git
synced 2026-07-01 01:06:38 +02:00
Added some useful Anope::Version functions to prevent some files from unnecessarily rebuilding on every make
This commit is contained in:
+1
-14
@@ -26,7 +26,6 @@
|
||||
#include "services.h"
|
||||
#include "timers.h"
|
||||
#include "modules.h"
|
||||
#include "version.h"
|
||||
|
||||
// getrlimit.
|
||||
#ifndef _WIN32
|
||||
@@ -552,16 +551,4 @@ int main(int ac, char **av, char **envp)
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Anope::string Anope::Version()
|
||||
{
|
||||
return stringify(VERSION_MAJOR) + "." + stringify(VERSION_MINOR) + "." + stringify(VERSION_PATCH) + VERSION_EXTRA + " (" + stringify(VERSION_BUILD) + ")";
|
||||
}
|
||||
|
||||
Anope::string Anope::Build()
|
||||
{
|
||||
return "build #" + stringify(BUILD) + ", compiled " + Anope::compiled;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user