Mir
Macros
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)    (((major) << 22) + ((minor) << 12) + (micro))
 MIR_VERSION_NUMBER. More...
 

Macro Definition Documentation

◆ MIR_VERSION_NUMBER

#define MIR_VERSION_NUMBER (   major,
  minor,
  micro 
)     (((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-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.