blob: b40196ffed45465aedd170bdda826f1f6c26774a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* version.cpp
* - Compiler version number
*/
#include <version.hpp>
#include <sstream>
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 0
#ifdef _WIN32
# define VERSION_GIT_ISDIRTY 1
# define VERSION_GIT_FULLHASH ""
# define VERSION_GIT_SHORTHASH ""
# define VERSION_BUILDTIME ""
# define VERSION_GIT_BRANCH ""
#endif
unsigned int giVersion_Major = VERSION_MAJOR;
unsigned int giVersion_Minor = VERSION_MINOR;
unsigned int giVersion_Patch = VERSION_PATCH;
bool gbVersion_GitDirty = VERSION_GIT_ISDIRTY;
const char* gsVersion_GitHash = VERSION_GIT_FULLHASH;
const char* gsVersion_GitShortHash = VERSION_GIT_SHORTHASH;
const char* gsVersion_BuildTime = VERSION_BUILDTIME;
::std::string Version_GetString()
{
::std::stringstream ss;
ss << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." << VERSION_PATCH << " " << VERSION_GIT_BRANCH << ":" << VERSION_GIT_SHORTHASH;
return ss.str();
}
|