XTE_VERSION_MAJOR, XTE_VERSION_MINOR, XTE_VERSION_PATCH, XTE_VERSION()

Defined in header <xte/preproc/version.hpp>

Macros defining the current version of this library.


Definitions

#major
#define XTE_VERSION_MAJOR /* integer literal */
Incremented when breaking changes are applied (which forces users to update their code).

#minor
#define XTE_VERSION_MINOR /* integer literal */
Incremented when new features are added.

#patch
#define XTE_VERSION_PATCH /* integer literal */
Incremented when bug fixes are applied or internal changes are made.

#version
#define XTE_VERSION(_operator, _major, .../* _minor, _patch */) /* boolean expression */
Allows up to two additional arguments for the minor and patch versions. Expands to a comparison of XIEITE's version to the provided arguments.


Example

std::println("v{}.{}.{}", XTE_VERSION_MAJOR, XTE_VERSION_MINOR, XTE_VERSION_PATCH);
[View in Compiler Explorer]