2015-04-03 12:02:14 -06:00
|
|
|
#pragma once
|
2015-04-02 14:37:58 -06:00
|
|
|
namespace DFHack {
|
|
|
|
namespace Version {
|
|
|
|
const char *df_version();
|
2018-07-11 09:47:55 -06:00
|
|
|
const char *dfhack_version();
|
2015-04-02 14:37:58 -06:00
|
|
|
const char *dfhack_release();
|
2018-07-11 09:47:55 -06:00
|
|
|
const char *dfhack_build_id();
|
2018-03-10 14:55:00 -07:00
|
|
|
int dfhack_abi_version();
|
2018-07-11 09:47:55 -06:00
|
|
|
|
2015-06-24 17:32:45 -06:00
|
|
|
const char *git_description();
|
2023-04-23 19:20:50 -06:00
|
|
|
const char* git_commit(bool short_hash = false);
|
2016-02-01 08:30:53 -07:00
|
|
|
const char *git_xml_commit();
|
|
|
|
const char *git_xml_expected_commit();
|
|
|
|
bool git_xml_match();
|
2018-07-11 09:47:55 -06:00
|
|
|
|
2015-10-17 13:35:40 -06:00
|
|
|
bool is_release();
|
2015-12-11 18:27:46 -07:00
|
|
|
bool is_prerelease();
|
2015-04-02 14:37:58 -06:00
|
|
|
}
|
|
|
|
}
|
2015-08-06 15:30:51 -06:00
|
|
|
|
|
|
|
#ifndef NO_DFHACK_VERSION_MACROS
|
2015-10-17 13:35:40 -06:00
|
|
|
#define DF_VERSION (DFHack::Version::df_version())
|
|
|
|
#define DFHACK_VERSION (DFHack::Version::dfhack_version())
|
2018-07-11 09:47:55 -06:00
|
|
|
#define DFHACK_RELEASE (DFHack::Version::dfhack_release())
|
|
|
|
#define DFHACK_BUILD_ID (DFHack::Version::dfhack_build_id())
|
2018-03-10 14:55:00 -07:00
|
|
|
#define DFHACK_ABI_VERSION (DFHack::Version::dfhack_abi_version())
|
2018-07-11 09:47:55 -06:00
|
|
|
|
2015-10-17 13:35:40 -06:00
|
|
|
#define DFHACK_GIT_DESCRIPTION (DFHack::Version::git_description())
|
|
|
|
#define DFHACK_GIT_COMMIT (DFHack::Version::git_commit())
|
2016-02-01 08:30:53 -07:00
|
|
|
#define DFHACK_GIT_XML_COMMIT (DFHack::Version::git_xml_commit())
|
|
|
|
#define DFHACK_GIT_XML_EXPECTED_COMMIT (DFHack::Version::git_xml_expected_commit())
|
|
|
|
#define DFHACK_GIT_XML_MATCH (DFHack::Version::git_xml_match())
|
2018-07-11 09:47:55 -06:00
|
|
|
|
2015-10-17 13:35:40 -06:00
|
|
|
#define DFHACK_IS_RELEASE (DFHack::Version::is_release())
|
2015-12-11 18:27:46 -07:00
|
|
|
#define DFHACK_IS_PRERELEASE (DFHack::Version::is_prerelease())
|
2015-08-06 15:30:51 -06:00
|
|
|
#endif
|