XIEITE_VER_MAJOR, XIEITE_VER_MINOR, XIEITE_VER_PATCH, XIEITE_VER_EQ(), XIEITE_VER_LEAST(), XIEITE_VER_MOST()

Defined in header <xieite/pp/ver.hpp>

Macros defining the current version of this library.


Definitions

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

#ver-minor
#define XIEITE_VER_MINOR /* integer literal */
Incremented when new features are added.

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

#ver
#define XIEITE_VER(_major, _cmp, .../* _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

int main() {
	std::println("v{}.{}.{}", XIEITE_VER_MAJOR, XIEITE_VER_MINOR, XIEITE_VER_PATCH);
}
Possible output:
v0.103.0
[View in Compiler Explorer]