14 #ifndef FOXXLL_VERSION_HEADER 15 #define FOXXLL_VERSION_HEADER 21 #include <foxxll/config.hpp> 28 #define FOXXLL_VERSION_INTEGER (FOXXLL_VERSION_MAJOR * 10000 + FOXXLL_VERSION_MINOR * 100 + FOXXLL_VERSION_PATCH) 30 #define stringify_(x) #x 31 #define stringify(x) stringify_(x) 36 return FOXXLL_VERSION_STRING;
43 " v" FOXXLL_VERSION_STRING
44 #ifdef FOXXLL_VERSION_PHASE 45 " (" FOXXLL_VERSION_PHASE
")" 47 #ifdef FOXXLL_VERSION_GIT_SHA1 48 " (git " FOXXLL_VERSION_GIT_SHA1
")" 49 #endif // FOXXLL_VERSION_GIT_SHA1 89 "version mismatch between headers" 90 " (" << FOXXLL_VERSION_STRING
") and library" 98 #endif // !FOXXLL_VERSION_HEADER int version_minor()
return Y if the FOXXLL library version is X.Y.Z
int check_library_version()
Check for a mismatch between library and headers.
int version_patch()
return Z if the FOXXLL library version is X.Y.Z
std::string get_version_string()
Return "X.Y.Z" version string (of headers)
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
int version_integer()
return integer version number of the FOXXLL library
#define tlx_die(msg)
Instead of std::terminate(), throw the output the message via an exception.
void print_library_version_mismatch()
Check and print mismatch between header and library versions.
std::string get_library_version_string()
returns "X.Y.Z" version string of library
std::string get_library_version_string_long()
returns longer "X.Y.Z (feature) (version)" string of library
int version_major()
return X if the FOXXLL library version is X.Y.Z
std::string get_version_string_long()
Return longer "X.Y.Z (feature) (version)" version string (of headers)