Skip to content

Version

Defines

MIRA_VERSION_IS_DEVELOP

#define MIRA_VERSION_IS_DEVELOP

This is != 0, when the version of Mira is a debug build, not for production use.

MIRA_VERSION_VALUE

#define MIRA_VERSION_VALUE(major, minor, patch)

Creates a single number from major, minor and patch.

MIRA_VERSION_MAJOR

#define MIRA_VERSION_MAJOR(v)

Gets the major version from a MIRA_VERSION_VALUE composed number.

MIRA_VERSION_MINOR

#define MIRA_VERSION_MINOR(v)

Gets the minor version from a MIRA_VERSION_VALUE composed number.

MIRA_VERSION_PATCH

#define MIRA_VERSION_PATCH(v)

Gets the patch version from a MIRA_VERSION_VALUE composed number.

MIRA_VERSION_EQ

#define MIRA_VERSION_EQ(major, minor, patch)

Is the current Mira version the same as the given arguments?

MIRA_VERSION_LT

#define MIRA_VERSION_LT(major, minor, patch)

Is the current Mira version less than the given arguments?

MIRA_VERSION_GT

#define MIRA_VERSION_GT(major, minor, patch)

Is the current Mira version greater than the given arguments?

A debug version with the given arguments is also counted as greater than that version here.

MIRA_VERSION_LE

#define MIRA_VERSION_LE(major, minor, patch)

Is the current Mira version less than or equal to the given arguments?

A debug version with the given arguments is not counted as less than that version here.

MIRA_VERSION_GE

#define MIRA_VERSION_GE(major, minor, patch)

Is the current Mira version greater than or equal to the given arguments?

MIRA_VERSION

#define MIRA_VERSION

The current mira version as a MIRA_VERSION_VALUE number.

Functions

mira_get_version

const char * mira_get_version(void);

Get a string describing the library's version.

Back to top