|
|
@ -1,15 +1,18 @@
|
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
namespace DFHack {
|
|
|
|
namespace DFHack {
|
|
|
|
namespace Version {
|
|
|
|
namespace Version {
|
|
|
|
const char *dfhack_version();
|
|
|
|
|
|
|
|
const char *df_version();
|
|
|
|
const char *df_version();
|
|
|
|
|
|
|
|
const char *dfhack_version();
|
|
|
|
const char *dfhack_release();
|
|
|
|
const char *dfhack_release();
|
|
|
|
|
|
|
|
const char *dfhack_build_id();
|
|
|
|
int dfhack_abi_version();
|
|
|
|
int dfhack_abi_version();
|
|
|
|
|
|
|
|
|
|
|
|
const char *git_description();
|
|
|
|
const char *git_description();
|
|
|
|
const char *git_commit();
|
|
|
|
const char *git_commit();
|
|
|
|
const char *git_xml_commit();
|
|
|
|
const char *git_xml_commit();
|
|
|
|
const char *git_xml_expected_commit();
|
|
|
|
const char *git_xml_expected_commit();
|
|
|
|
bool git_xml_match();
|
|
|
|
bool git_xml_match();
|
|
|
|
|
|
|
|
|
|
|
|
bool is_release();
|
|
|
|
bool is_release();
|
|
|
|
bool is_prerelease();
|
|
|
|
bool is_prerelease();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -17,14 +20,17 @@ namespace DFHack {
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NO_DFHACK_VERSION_MACROS
|
|
|
|
#ifndef NO_DFHACK_VERSION_MACROS
|
|
|
|
#define DF_VERSION (DFHack::Version::df_version())
|
|
|
|
#define DF_VERSION (DFHack::Version::df_version())
|
|
|
|
#define DFHACK_RELEASE (DFHack::Version::dfhack_release())
|
|
|
|
|
|
|
|
#define DFHACK_VERSION (DFHack::Version::dfhack_version())
|
|
|
|
#define DFHACK_VERSION (DFHack::Version::dfhack_version())
|
|
|
|
|
|
|
|
#define DFHACK_RELEASE (DFHack::Version::dfhack_release())
|
|
|
|
|
|
|
|
#define DFHACK_BUILD_ID (DFHack::Version::dfhack_build_id())
|
|
|
|
#define DFHACK_ABI_VERSION (DFHack::Version::dfhack_abi_version())
|
|
|
|
#define DFHACK_ABI_VERSION (DFHack::Version::dfhack_abi_version())
|
|
|
|
|
|
|
|
|
|
|
|
#define DFHACK_GIT_DESCRIPTION (DFHack::Version::git_description())
|
|
|
|
#define DFHACK_GIT_DESCRIPTION (DFHack::Version::git_description())
|
|
|
|
#define DFHACK_GIT_COMMIT (DFHack::Version::git_commit())
|
|
|
|
#define DFHACK_GIT_COMMIT (DFHack::Version::git_commit())
|
|
|
|
#define DFHACK_GIT_XML_COMMIT (DFHack::Version::git_xml_commit())
|
|
|
|
#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_EXPECTED_COMMIT (DFHack::Version::git_xml_expected_commit())
|
|
|
|
#define DFHACK_GIT_XML_MATCH (DFHack::Version::git_xml_match())
|
|
|
|
#define DFHACK_GIT_XML_MATCH (DFHack::Version::git_xml_match())
|
|
|
|
|
|
|
|
|
|
|
|
#define DFHACK_IS_RELEASE (DFHack::Version::is_release())
|
|
|
|
#define DFHACK_IS_RELEASE (DFHack::Version::is_release())
|
|
|
|
#define DFHACK_IS_PRERELEASE (DFHack::Version::is_prerelease())
|
|
|
|
#define DFHACK_IS_PRERELEASE (DFHack::Version::is_prerelease())
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|