#pragma once // This file is generated by cmake. Changes will be overwritten. // clang-format off #include // Creates a version number for use in macro comparisons. // // Example: // // // Check if the version is less than 2.1.0 // #if LIBRETROHOST_VERSION < LIBRETROHOST_VERSION_CHECK(2, 1, 0) // // do stuff // #endif // // Returns an integer which may be used in comparisons #define LIBRETROHOST_VERSION_CHECK( major, minor, patch ) ( ((major)<<16) | ((minor)<<8) | (patch) ) #define LIBRETROHOST_VERSION_MAJOR 0 #define LIBRETROHOST_VERSION_MINOR 1 #define LIBRETROHOST_VERSION_PATCH 0 // The version number of this extension. Used for #if comparisons. // This is generated using the version set in the CMake project macro. #define LIBRETROHOST_VERSION LIBRETROHOST_VERSION_CHECK( 0, 1, 0 ) namespace VersionInfo { // Project name and version as a string. // This is generated using the project name from the cmake project macro and the current git commit information. // // It uses the form " -<# commits since last tag>-". // If there are no commits since the last tag, only the tag is shown. constexpr std::string_view VERSION_STR = "LibRetroHost HEAD-HASH-NOTFOUND"; // The version information as a string. // This is generated using the current git commit information. // // It uses the form "-<# commits since last tag>-". // If there are no commits since the last tag, only the tag is shown. constexpr std::string_view VERSION_SHORT_STR = "HEAD-HASH-NOTFOUND"; // The full git SHA1 hash as a string. // This is generated using the current git commit information. constexpr std::string_view GIT_SHA1_STR = "GITDIR-NOTFOUND"; }