Versioning

Versioning — Versioning API

Synopsis

#define             TWITTER_GLIB_MAJOR_VERSION
#define             TWITTER_GLIB_MINOR_VERSION
#define             TWITTER_GLIB_MICRO_VERSION
#define             TWITTER_GLIB_API_VERSION_S
#define             TWITTER_GLIB_VERSION_S
#define             TWITTER_GLIB_VERSION_HEX
#define             TWITTER_GLIB_CHECK_VERSION          (major,minor,micro)

Description

Twitter-GLib provides some API and definitions for compile-time version checking.

Details

TWITTER_GLIB_MAJOR_VERSION

#define TWITTER_GLIB_MAJOR_VERSION      (0)

Major version of Twitter-GLib, e.g. 1 in "1.2.3"


TWITTER_GLIB_MINOR_VERSION

#define TWITTER_GLIB_MINOR_VERSION      (9)

Minor version of Twitter-GLib, e.g. 2 in "1.2.3"


TWITTER_GLIB_MICRO_VERSION

#define TWITTER_GLIB_MICRO_VERSION      (8)

Micro version of Twitter-GLib, e.g. 3 in "1.2.3"


TWITTER_GLIB_API_VERSION_S

#define TWITTER_GLIB_API_VERSION_S      "1.0"

Version of the API of Twitter-GLib


TWITTER_GLIB_VERSION_S

#define TWITTER_GLIB_VERSION_S          "0.9.8"

Stringified version of Twitter-GLib, e.g. "1.2.3".

Useful for display.


TWITTER_GLIB_VERSION_HEX

#define             TWITTER_GLIB_VERSION_HEX

Hexadecimally encoded version of Twitter-GLib, e.g. 0x01020300"

Useful for comparisons.


TWITTER_GLIB_CHECK_VERSION()

#define             TWITTER_GLIB_CHECK_VERSION(major,minor,micro)

Checks whether the decomposed version (major, minor, micro) is bigger than the version of Twitter-GLib. This is a compile-time check only.

major :

major component of the version to check

minor :

minor component of the version to check

micro :

micro component of the version to check