Library version

Library version — Methods and types to report library version.

Functions

#define MCCR_CHECK_VERSION()
unsigned int mccr_get_major_version ()
unsigned int mccr_get_minor_version ()
unsigned int mccr_get_micro_version ()

Types and Values

Description

This section defines the types and methods exposed by the library to report its own version both at build time and at run time.

Functions

MCCR_CHECK_VERSION()

#define             MCCR_CHECK_VERSION(major,minor,micro)

Parameters

major

major version (e.g. 1 for version 1.2.5)

 

minor

minor version (e.g. 2 for version 1.2.5)

 

micro

micro version (e.g. 5 for version 1.2.5)

 

Returns

TRUE if the version of the libmccr header file is the same as or newer than the given version.


mccr_get_major_version ()

unsigned int
mccr_get_major_version (void);

Runtime check of the major library version.

Returns

the major library version.


mccr_get_minor_version ()

unsigned int
mccr_get_minor_version (void);

Runtime check of the minor library version.

Returns

the minor library version.


mccr_get_micro_version ()

unsigned int
mccr_get_micro_version (void);

Runtime check of the micro library version.

Returns

the micro library version.

Types and Values

MCCR_MAJOR_VERSION

#define MCCR_MAJOR_VERSION (1)

Evaluates to the major version number of libmccr which this source is compiled against.


MCCR_MINOR_VERSION

#define MCCR_MINOR_VERSION (2)

Evaluates to the minor version number of libmccr which this source is compiled against.


MCCR_MICRO_VERSION

#define MCCR_MICRO_VERSION (0)

Evaluates to the micro version number of libmccr which this source compiled against.