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
Incremented for new features or breaking changes.#define XTE_VERSION_MINOR /* integer literal */
#patch
Incremented for bug fixes or internal changes.#define XTE_VERSION_PATCH /* integer literal */
#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
Possible preprocessor output:#if XTE_VERSION (>=,0 ,158 ,4 ) yup#else nop#endif
[View in Compiler Explorer]yup