XTE_VERSION

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

Macros defining the current version of this library.


Definitions

#major
#define XTE_VERSION_MAJOR 0

#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(_operator, _major, .../* _minor, _patch */) /* boolean expression */
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
Preprocessor output:
yup
[View in Compiler Explorer]