Version Checking

Version Checking — Conditionally include code based on Builder version

Functions

Types and Values

Description

This module provides various macros that may be used to build code based on the version of Builder at build time.

Functions

DEVD_ENCODE_VERSION()

#define             DEVD_ENCODE_VERSION(major,minor,micro)

DEVD_CHECK_VERSION()

#define             DEVD_CHECK_VERSION(major,minor,micro)

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

Parameters

major

required major version

 

minor

required minor version

 

micro

required micro version

 

Types and Values

DEVD_MAJOR_VERSION

#define DEVD_MAJOR_VERSION (3)

libdeviced major version component (e.g. 1 if DEVD_VERSION is 1.2.3)


DEVD_MINOR_VERSION

#define DEVD_MINOR_VERSION (27)

libdeviced minor version component (e.g. 2 if DEVD_VERSION is 1.2.3)


DEVD_MICRO_VERSION

#define DEVD_MICRO_VERSION (4)

libdeviced micro version component (e.g. 3 if DEVD_VERSION is 1.2.3)


DEVD_VERSION

#define DEVD_VERSION (3.27.4)

libdeviced version.


DEVD_VERSION_S

#define DEVD_VERSION_S "3.27.4"

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


DEVD_VERSION_HEX

#define             DEVD_VERSION_HEX

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