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
#ver-majorIncremented when breaking changes are applied (which forces users to update their code).#define XIEITE_VER_MAJOR /* integer literal */
#ver-minor
Incremented when new features are added.#define XIEITE_VER_MINOR /* integer literal */
#ver-patch
Incremented when bug fixes are applied or internal changes are made.#define XIEITE_VER_PATCH /* integer literal */
#ver
Allows up to two additional arguments for the minor and patch versions. Expands to a comparison of XIEITE's version to the provided arguments.#define XIEITE_VER (_major ,_cmp ,... /* _minor, _patch */ )/* boolean expression */
Example
Possible output:int main () {std ::println ("v ,{} .{} .{} "XIEITE_VER_MAJOR ,XIEITE_VER_MINOR ,XIEITE_VER_PATCH ); }
[View in Compiler Explorer]v0.103.0