2015-08-06 15:30:51 -06:00
|
|
|
#define NO_DFHACK_VERSION_MACROS
|
2015-02-19 08:31:58 -07:00
|
|
|
#include "DFHackVersion.h"
|
2015-06-24 17:32:45 -06:00
|
|
|
#include "git-describe.h"
|
|
|
|
#include "Export.h"
|
2015-04-02 14:37:58 -06:00
|
|
|
namespace DFHack {
|
|
|
|
namespace Version {
|
2015-06-24 17:32:45 -06:00
|
|
|
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;
|
|
|
|
}
|
2015-08-06 15:30:51 -06:00
|
|
|
const char *git_commit()
|
|
|
|
{
|
|
|
|
return DFHACK_GIT_COMMIT;
|
|
|
|
}
|
2015-10-17 13:35:40 -06:00
|
|
|
|
|
|
|
bool is_release()
|
|
|
|
{
|
|
|
|
#ifdef DFHACK_GIT_TAGGED
|
|
|
|
return true;
|
|
|
|
#else
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
}
|
2015-12-11 18:27:46 -07:00
|
|
|
|
|
|
|
bool is_prerelease()
|
|
|
|
{
|
|
|
|
#ifdef DFHACK_PRERELEASE
|
|
|
|
return true;
|
|
|
|
#else
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
}
|
2015-04-02 14:37:58 -06:00
|
|
|
}
|
|
|
|
}
|