47 lines
940 B
C++
47 lines
940 B
C++
#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
|
|
}
|
|
}
|
|
}
|