Versioning information

Versioning information — JSON-GLib version checking

Synopsis

#define             JSON_MAJOR_VERSION
#define             JSON_MINOR_VERSION
#define             JSON_MICRO_VERSION

#define             JSON_VERSION
#define             JSON_VERSION_S
#define             JSON_VERSION_HEX

#define             JSON_CHECK_VERSION                  (major,
                                                         minor,
                                                         micro)

Description

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

Details

JSON_MAJOR_VERSION

#define JSON_MAJOR_VERSION              (0)

Json major version component (e.g. 1 if JSON_VERSION is 1.2.3)


JSON_MINOR_VERSION

#define JSON_MINOR_VERSION              (16)

Json minor version component (e.g. 2 if JSON_VERSION is 1.2.3)


JSON_MICRO_VERSION

#define JSON_MICRO_VERSION              (0)

Json micro version component (e.g. 3 if JSON_VERSION is 1.2.3)


JSON_VERSION

#define JSON_VERSION                    (0.16.0)

Json version.


JSON_VERSION_S

#define JSON_VERSION_S                  "0.16.0"

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


JSON_VERSION_HEX

#define             JSON_VERSION_HEX

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


JSON_CHECK_VERSION()

#define             JSON_CHECK_VERSION(major,minor,micro)

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

major :

required major version

minor :

required minor version

micro :

required micro version