Mir
Loading...
Searching...
No Matches
mir_version_number.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MIR_VERSION_NUMBER(major, minor, micro)
 MIR_VERSION_NUMBER.
 

Macro Definition Documentation

◆ MIR_VERSION_NUMBER

#define MIR_VERSION_NUMBER ( major,
minor,
micro )
Value:
(((major) << 22) + ((minor) << 12) + (micro))

MIR_VERSION_NUMBER.

Parameters
major[in] The major version (eg: 3 for version 3.2.33)
minor[in] The minor version (eg: 2 for version 3.2.33)
micro[in] The micro version (eg: 33 for version 3.2.33)

Returns the combined version information as a single 32-bit value for logical comparisons. For example: #if MIR_CLIENT_VERSION >= MIR_VERSION_NUMBER(2,3,4)

This can be useful to conditionally build code depending on new features or specific bugfixes in the Mir client library.


Copyright © 2012-2025 Canonical Ltd.
Generated on Sun Mar 2 17:34:18 UTC 2025
This documentation is licensed under the GPL version 2 or 3.