Loading [MathJax]/extensions/tex2jax.js
Carna  Version 3.3.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros
Version.h File Reference

Defines the macros CARNA_MAJOR_VERSION, CARNA_MINOR_VERSION, CARNA_PATCH_VERSION and CARNA_ASSERT_API_VERSION. More...

Go to the source code of this file.

Macros

#define CARNA_MAJOR_VERSION   3
 Defines the API major version number.
 
#define CARNA_MINOR_VERSION   3
 Defines the API minor version number.
 
#define CARNA_PATCH_VERSION   2
 Defines the API patch version number.
 
#define CARNA_ASSERT_API_VERSION(expected_major_version, expected_minor_version, expected_patch_version)
 Fails if current Carna implementation does not support the requested API version. More...
 

Detailed Description

Defines the macros CARNA_MAJOR_VERSION, CARNA_MINOR_VERSION, CARNA_PATCH_VERSION and CARNA_ASSERT_API_VERSION.

Attention
This file is automatically generated from misc/Version.h.in, thus DO NOT CHANGE THIS FILE DIRECTLY!!!
Author
Leonid Kostrykin
Date
2.5.13

Definition in file Version.h.

Macro Definition Documentation

◆ CARNA_ASSERT_API_VERSION

#define CARNA_ASSERT_API_VERSION (   expected_major_version,
  expected_minor_version,
  expected_patch_version 
)
Value:
static_assert( \
expected_major_version == CARNA_MAJOR_VERSION && \
expected_minor_version == CARNA_MINOR_VERSION && \
expected_patch_version >= CARNA_PATCH_VERSION, \
"Incompatible Carna Version!" );
#define CARNA_MAJOR_VERSION
Defines the API major version number.
Definition: Version.h:39
#define CARNA_MINOR_VERSION
Defines the API minor version number.
Definition: Version.h:50
#define CARNA_PATCH_VERSION
Defines the API patch version number.
Definition: Version.h:61

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 77 of file Version.h.