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
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
Allows up to two additional arguments for the minor and patch versions. Expands to an expression comparing XIEITE's version to the provided arguments.#define XTE_VERSION (_operator ,_major ,... /* _minor, _patch */ )/* boolean expression */
Example
Preprocessor output:#if XTE_VERSION (>=,0 ,158 ,4 ) yup#else nop#endif
[View in Compiler Explorer]yup