• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • <CDPVersion> - CDP Version
  • 5.0.0

<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").

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top