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 */

#minor
#define XTE_VERSION_MINOR /* integer literal */
Incremented for new features or breaking changes.

#patch
#define XTE_VERSION_PATCH /* integer literal */
Incremented for bug fixes or internal changes.

#version
#define XTE_VERSION(OP, MAJOR, /* MINOR, PATCH */...) /* boolean expression */
OP must be <, <=, >, >=, ==, or !=. Allows up to two additional arguments for the minor and patch versions. Expands to an expression comparing XIEITE's version to the provided arguments.



Example

#if XTE_VERSION(>=, 0,158,4)
	yup
#else
	nop
#endif
Possible preprocessor output:
yup
[View in Compiler Explorer]