Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

COVerMajor

Description

This function returns the major version number value. The version number is encoded in the following way:

...

The following example uses the major version of the CANopen stack to implement an application, which is independent from specific features of version.


Code Block
languagecpp
    :
    if (<code>COVerMajor()</code> < 3) {
        /* do some compatibility stuff */
    }
    :