<CDPVersion> - CDP Version
Expands to CDP revision (git commit hash).
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.
#if CDP_VERSION >= 0x040000 // foo #else // bar #endif
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:
#if CDP_VERSION >= CDP_VERSION_CHECK(4, 0, 0) // foo #else // bar #endif
Expands to CDP major version.
Expands to CDP minor version.
Expands to CDP patch version.
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.