forked from DFHack/dfhack
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDFHackVersion.cpp
More file actions
46 lines (44 loc) · 940 Bytes
/
Copy pathDFHackVersion.cpp
File metadata and controls
46 lines (44 loc) · 940 Bytes
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
38
39
40
41
42
43
44
45
46
#define NO_DFHACK_VERSION_MACROS
#include "DFHackVersion.h"
#include "git-describe.h"
#include "Export.h"
namespace DFHack {
namespace Version {
const char *dfhack_version()
{
return DFHACK_VERSION;
}
const char *df_version()
{
return DF_VERSION;
}
const char *dfhack_release()
{
return DFHACK_RELEASE;
}
const char *git_description()
{
return DFHACK_GIT_DESCRIPTION;
}
const char *git_commit()
{
return DFHACK_GIT_COMMIT;
}
bool is_release()
{
#ifdef DFHACK_GIT_TAGGED
return true;
#else
return false;
#endif
}
bool is_prerelease()
{
#ifdef DFHACK_PRERELEASE
return true;
#else
return false;
#endif
}
}
}