LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Macros
Version.hpp File Reference

Defines the macros LIBCARNA_MAJOR_VERSION, LIBCARNA_MINOR_VERSION, LIBCARNA_PATCH_VERSION and LIBCARNA_ASSERT_API_VERSION. More...

Go to the source code of this file.

Macros

#define LIBCARNA_MAJOR_VERSION   3
 Defines the API major version number.
 
#define LIBCARNA_MINOR_VERSION   4
 Defines the API minor version number.
 
#define LIBCARNA_PATCH_VERSION   0
 Defines the API patch version number.
 
#define LIBCARNA_ASSERT_API_VERSION(expected_major_version, expected_minor_version, expected_patch_version)
 Fails if current Carna implementation does not support the requested API version.
 

Detailed Description

Defines the macros LIBCARNA_MAJOR_VERSION, LIBCARNA_MINOR_VERSION, LIBCARNA_PATCH_VERSION and LIBCARNA_ASSERT_API_VERSION.

Attention
This file is automatically generated from misc/Version.h.in, thus do not modify this file directly.

Definition in file Version.hpp.

Macro Definition Documentation

◆ LIBCARNA_ASSERT_API_VERSION

#define LIBCARNA_ASSERT_API_VERSION (   expected_major_version,
  expected_minor_version,
  expected_patch_version 
)
Value:
static_assert( \
expected_major_version == LIBCARNA_MAJOR_VERSION && \
expected_minor_version == LIBCARNA_MINOR_VERSION && \
expected_patch_version >= LIBCARNA_PATCH_VERSION, \
"Incompatible Carna Version!" );
#define LIBCARNA_MINOR_VERSION
Defines the API minor version number.
Definition Version.hpp:46
#define LIBCARNA_MAJOR_VERSION
Defines the API major version number.
Definition Version.hpp:35
#define LIBCARNA_PATCH_VERSION
Defines the API patch version number.
Definition Version.hpp:57

Fails if current Carna implementation does not support the requested API version.

The build only succeeds if:

  • The real major version number is the same as the requested major version number.
  • The real minor version number is the same as the requested minor version number.
  • The real patch version number is at least the requested patch version number.

Definition at line 73 of file Version.hpp.

◆ LIBCARNA_MAJOR_VERSION

#define LIBCARNA_MAJOR_VERSION   3

Defines the API major version number.

Definition at line 35 of file Version.hpp.

◆ LIBCARNA_MINOR_VERSION

#define LIBCARNA_MINOR_VERSION   4

Defines the API minor version number.

Definition at line 46 of file Version.hpp.

◆ LIBCARNA_PATCH_VERSION

#define LIBCARNA_PATCH_VERSION   0

Defines the API patch version number.

Definition at line 57 of file Version.hpp.