Versioning

Versioning — GTask version checking

Synopsis

#define             GTASK_MAJOR_VERSION
#define             GTASK_MINOR_VERSION
#define             GTASK_MICRO_VERSION
#define             GTASK_VERSION
#define             GTASK_VERSION_S
#define             GTASK_VERSION_HEX
#define             GTASK_CHECK_VERSION                 (major,minor,micro)

Description

GTask provides macros to check the version of the library at compile-time

Details

GTASK_MAJOR_VERSION

#define GTASK_MAJOR_VERSION              (0)

GTask major version component (e.g. 1 if GTASK_VERSION is 1.2.3)


GTASK_MINOR_VERSION

#define GTASK_MINOR_VERSION              (1)

GTask minor version component (e.g. 2 if GTASK_VERSION is 1.2.3)


GTASK_MICRO_VERSION

#define GTASK_MICRO_VERSION              (2)

GTask micro version component (e.g. 3 if GTASK_VERSION is 1.2.3)


GTASK_VERSION

#define GTASK_VERSION                    (0.1.2)

GTask version.


GTASK_VERSION_S

#define GTASK_VERSION_S                  "0.1.2"

GTask version, encoded as a string, useful for printing and concatenation.


GTASK_VERSION_HEX

#define             GTASK_VERSION_HEX

GTask version, encoded as an hexadecimal number, useful for integer comparisons.


GTASK_CHECK_VERSION()

#define             GTASK_CHECK_VERSION(major,minor,micro)

Compile-time version checking. Evaluates to TRUE if the version of GTask is greater than the required one.

major :

required major version

minor :

required minor version

micro :

required micro version