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"
|
2015-04-02 14:37:58 -06:00
|
|
|
namespace DFHack {
|
|
|
|
namespace Version {
|
2018-03-10 14:55:00 -07:00
|
|
|
int dfhack_abi_version()
|
|
|
|
{
|
|
|
|
return DFHACK_ABI_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;
|
|
|
|
}
|
2016-02-01 08:30:53 -07:00
|
|
|
const char *git_xml_commit()
|
|
|
|
{
|
|
|
|
return DFHACK_GIT_XML_COMMIT;
|
|
|
|
}
|
|
|
|
const char *git_xml_expected_commit()
|
|
|
|
{
|
|
|
|
return DFHACK_GIT_XML_EXPECTED_COMMIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool git_xml_match()
|
|
|
|
{
|
|
|
|
#ifdef DFHACK_GIT_XML_MATCH
|
|
|
|
return true;
|
|
|
|
#else
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|