hdy-version: Handy Reference Manual

## hdy-version hdy-version — Handy version checking. |

## Functions

#define | HDY_ENCODE_VERSION()
#define | HDY_CHECK_VERSION()
#define | HDY_UNAVAILABLE()
#define | HDY_DEPRECATED_IN_1_2_FOR()
#define | HDY_DEPRECATED_TYPE_IN_1_2_FOR()
#define | HDY_DEPRECATED_IN_1_4_FOR()
#define | HDY_DEPRECATED_TYPE_IN_1_4_FOR()
#define | HDY_DEPRECATED_IN_1_6_FOR()
#define | HDY_DEPRECATED_TYPE_IN_1_6_FOR()

## Types and Values

#define | HDY_MAJOR_VERSION
#define | HDY_MINOR_VERSION
#define | HDY_MICRO_VERSION
#define | HDY_VERSION
#define | HDY_VERSION_S
#define | HDY_VERSION_HEX
#define | HDY_VERSION_1_2
#define | HDY_VERSION_1_4
#define | HDY_VERSION_1_6
#define | HDY_VERSION_MAX_ALLOWED
#define | HDY_VERSION_MIN_REQUIRED
#define | HDY_AVAILABLE_IN_ALL
#define | HDY_AVAILABLE_IN_1_2
#define | HDY_DEPRECATED_IN_1_2
#define | HDY_DEPRECATED_TYPE_IN_1_2
#define | HDY_AVAILABLE_IN_1_4
#define | HDY_DEPRECATED_IN_1_4
#define | HDY_DEPRECATED_TYPE_IN_1_4
#define | HDY_AVAILABLE_IN_1_6
#define | HDY_DEPRECATED_IN_1_6
#define | HDY_DEPRECATED_TYPE_IN_1_6

## Description

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

## Functions

### HDY_ENCODE_VERSION()

    #define             HDY_ENCODE_VERSION(major,minor,micro)

### HDY_CHECK_VERSION()

    #define             HDY_CHECK_VERSION(major,minor,micro)

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

#### Parameters

major | required major version |
minor | required minor version |
micro | required micro version |

### HDY_UNAVAILABLE()

    #define HDY_UNAVAILABLE(major, minor) G_UNAVAILABLE(major, minor) _HDY_EXTERN

### HDY_DEPRECATED_IN_1_2_FOR()

    # define HDY_DEPRECATED_IN_1_2_FOR(f)      _HDY_DEPRECATED_FOR(f)

### HDY_DEPRECATED_TYPE_IN_1_2_FOR()

    # define HDY_DEPRECATED_TYPE_IN_1_2_FOR(f) _HDY_DEPRECATED_TYPE_FOR(f)

### HDY_DEPRECATED_IN_1_4_FOR()

    # define HDY_DEPRECATED_IN_1_4_FOR(f)      _HDY_DEPRECATED_FOR(f)

### HDY_DEPRECATED_TYPE_IN_1_4_FOR()

    # define HDY_DEPRECATED_TYPE_IN_1_4_FOR(f) _HDY_DEPRECATED_TYPE_FOR(f)

### HDY_DEPRECATED_IN_1_6_FOR()

    # define HDY_DEPRECATED_IN_1_6_FOR(f)      _HDY_DEPRECATED_FOR(f)

### HDY_DEPRECATED_TYPE_IN_1_6_FOR()

    # define HDY_DEPRECATED_TYPE_IN_1_6_FOR(f) _HDY_DEPRECATED_TYPE_FOR(f)

## Types and Values

### HDY_MAJOR_VERSION

    #define HDY_MAJOR_VERSION              (1)

Hdy major version component (e.g. 1 if `HDY_VERSION` is 1.2.3)

### HDY_MINOR_VERSION

    #define HDY_MINOR_VERSION              (5)

Hdy minor version component (e.g. 2 if `HDY_VERSION` is 1.2.3)

### HDY_MICRO_VERSION

    #define HDY_MICRO_VERSION              (0)

Hdy micro version component (e.g. 3 if `HDY_VERSION` is 1.2.3)

### HDY_VERSION

    #define HDY_VERSION                    (1.5.0)

Hdy version.

### HDY_VERSION_S

    #define HDY_VERSION_S                  "1.5.0"

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

### HDY_VERSION_HEX

    #define             HDY_VERSION_HEX

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

### HDY_VERSION_1_2

    #define HDY_VERSION_1_2 (HDY_ENCODE_VERSION (1, 2, 0))

A macro that evaluates to the 1.2 version of Handy, in a format that can be used by the C pre-processor.

Since: 1.2

### HDY_VERSION_1_4

    #define HDY_VERSION_1_4 (HDY_ENCODE_VERSION (1, 4, 0))

A macro that evaluates to the 1.4 version of Handy, in a format that can be used by the C pre-processor.

Since: 1.4

### HDY_VERSION_1_6

    #define HDY_VERSION_1_6 (HDY_ENCODE_VERSION (1, 6, 0))

A macro that evaluates to the 1.6 version of Handy, in a format that can be used by the C pre-processor.

Since: 1.6

### HDY_VERSION_MAX_ALLOWED

    # define HDY_VERSION_MAX_ALLOWED HDY_VERSION_1_6

### HDY_VERSION_MIN_REQUIRED

    # define HDY_VERSION_MIN_REQUIRED HDY_VERSION_1_6

### HDY_AVAILABLE_IN_ALL

    #define HDY_AVAILABLE_IN_ALL _HDY_EXTERN

### HDY_AVAILABLE_IN_1_2

    # define HDY_AVAILABLE_IN_1_2 HDY_UNAVAILABLE(1, 2)

### HDY_DEPRECATED_IN_1_2

    # define HDY_DEPRECATED_IN_1_2             _HDY_DEPRECATED

### HDY_DEPRECATED_TYPE_IN_1_2

    # define HDY_DEPRECATED_TYPE_IN_1_2        _HDY_DEPRECATED_TYPE

### HDY_AVAILABLE_IN_1_4

    # define HDY_AVAILABLE_IN_1_4 HDY_UNAVAILABLE(1, 4)

### HDY_DEPRECATED_IN_1_4

    # define HDY_DEPRECATED_IN_1_4             _HDY_DEPRECATED

### HDY_DEPRECATED_TYPE_IN_1_4

    # define HDY_DEPRECATED_TYPE_IN_1_4        _HDY_DEPRECATED_TYPE

### HDY_AVAILABLE_IN_1_6

    # define HDY_AVAILABLE_IN_1_6 HDY_UNAVAILABLE(1, 6)

### HDY_DEPRECATED_IN_1_6

    # define HDY_DEPRECATED_IN_1_6             _HDY_DEPRECATED

### HDY_DEPRECATED_TYPE_IN_1_6

    # define HDY_DEPRECATED_TYPE_IN_1_6        _HDY_DEPRECATED_TYPE