<CDPVersion> - CDP Version
Macros
CDP_REVISION_STRING | |
CDP_VERSION | |
CDP_VERSION_CHECK | |
CDP_VERSION_MAJOR | |
CDP_VERSION_MINOR | |
CDP_VERSION_PATCH | |
CDP_VERSION_STRING |
Macro Documentation
CDP_REVISION_STRING
Expands to CDP revision (git commit hash).
CDP_VERSION
Expands to CDP version of the form 0xMMNNPP where MM is the major version, NN is the minor version and PP is the patch version.
Example:
#if CDP_VERSION >= 0x040000 // foo #else // bar #endif
CDP_VERSION_CHECK
Turns the major, minor and patch numbers of a version into an integer of the form 0xMMNNPP where MM is the major version, NN is the minor version and PP is the patch version. This can be compared with CDP_VERSION. Example:
Example:
#if CDP_VERSION >= CDP_VERSION_CHECK(4, 0, 0) // foo #else // bar #endif
CDP_VERSION_MAJOR
Expands to CDP major version.
CDP_VERSION_MINOR
Expands to CDP minor version.
CDP_VERSION_PATCH
Expands to CDP patch version.
CDP_VERSION_STRING
Expands to CDP version string (e.g. "4.0.0").
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.