CARB_HEXVERSION

Defined in carb/Interface.h

CARB_HEXVERSION(major, minor)

A macro to construct a hex-version.

Note

A major of 0 has special significance to Semantic Versioning: every iteration of minor is also considered a breaking change. However, carb::isVersionSemanticallyCompatible will warn on different minor versions if the major version is 0, but still report true.

Parameters
  • major – The major Semantic Version of the interface. It is recommended to start at 1.

  • minor – The minor Semantic Version of the interface. It is recommended to start at 0.

Returns

A hex-version.