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

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

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

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

#eq
#define XIEITE_VER_EQ(type, major, .../* minor, patch */) /* boolean integer literal */
Expands to an expression checking whether the library version is equal to some value.

#least
#define XIEITE_VER_LEAST(type, major, .../* minor, patch */) /* boolean integer literal */
Expands to an expression checking whether the library version is equal to or greater than some value.

#most
#define XIEITE_VER_MOST(type, major, .../* minor, patch */) /* boolean integer literal */
Expands to an expression checking whether the library version is equal to or less than some value.

Example

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