Files
eepp/include/eepp/version.hpp
Martín Lucas Golini 5dcd5e4c82 New version number and codename.
--HG--
branch : dev-2.1
2018-01-12 02:00:47 -03:00

53 lines
1.3 KiB
C++

#ifndef EE_VERSION_HPP
#define EE_VERSION_HPP
#include <eepp/config.hpp>
#include <string>
#define EEPP_MAJOR_VERSION 2
#define EEPP_MINOR_VERSION 1
#define EEPP_PATCH_LEVEL 0
#define EEPP_CODENAME "Metta"
/** The compiled version of the library */
#define EEPP_VERSION(x) \
{ \
(x)->major = EEPP_MAJOR_VERSION; \
(x)->minor = EEPP_MINOR_VERSION; \
(x)->patch = EEPP_PATCH_LEVEL; \
}
#define EEPP_VERSIONNUM(X, Y, Z) ((X)*1000 + (Y)*100 + (Z))
#define EEPP_COMPILEDVERSION EEPP_VERSIONNUM(EEPP_MAJOR_VERSION, EEPP_MINOR_VERSION, EEPP_PATCH_LEVEL)
#define EEPP_VERSION_ATLEAST(X, Y, Z) (EEPP_COMPILEDVERSION >= EEPP_VERSIONNUM(X, Y, Z))
namespace EE {
class EE_API Version {
public:
Uint8 major; /**< major version */
Uint8 minor; /**< minor version */
Uint8 patch; /**< update version */
/** @return The linked version of the library */
static Version getVersion();
/** @return The linked version number of the library */
static Uint32 getVersionNum();
/** @return The library version name: "eepp version major.minor.patch" */
static std::string getVersionName();
/** @return The version codename */
static std::string getCodename();
/** @return The build time of the library */
static std::string getBuildTime();
};
}
#endif