mx-version

mx-version — Versioning utility macros

Functions

#define MX_CHECK_VERSION()

Types and Values

Description

Mx offers a set of macros for checking the version of the library an application was linked to.

Functions

MX_CHECK_VERSION()

#define             MX_CHECK_VERSION(major,minor,micro)

Evaluates to TRUE if the version of the Mx library is greater than major , minor and micro

Parameters

major

major version, like 1 in 1.2.3

 

minor

minor version, like 2 in 1.2.3

 

micro

micro version, like 3 in 1.2.3

 

Types and Values

MX_MAJOR_VERSION

#define MX_MAJOR_VERSION              (1)

The major version of the Mx clibrary (1 if version is 1.2.3)


MX_MINOR_VERSION

#define MX_MINOR_VERSION              (99)

The minor version of the Mx library (2, if version is 1.2.3)


MX_MICRO_VERSION

#define MX_MICRO_VERSION              (4)

The micro version of the Mx library (3, if version is 1.2.3)


MX_VERSION_S

#define MX_VERSION_S                  "1.99.4"

The full version of the Mx library, in string form (suited for string concatenation)


MX_VERSION_HEX

#define             MX_VERSION_HEX

Numerically encoded version of the Mx library, like 0x010203