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()

## 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_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

## 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)

## 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              (2)

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

### HDY_MICRO_VERSION

    #define HDY_MICRO_VERSION              (3)

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

### HDY_VERSION

    #define HDY_VERSION                    (1.2.3)

Hdy version.

### HDY_VERSION_S

    #define HDY_VERSION_S                  "1.2.3"

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_MAX_ALLOWED

    # define HDY_VERSION_MAX_ALLOWED HDY_VERSION_1_2

### HDY_VERSION_MIN_REQUIRED

    # define HDY_VERSION_MIN_REQUIRED HDY_VERSION_1_2

### 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