base/version.h File Reference
Description
Major and minor version number and an optional qualifier. See Versioning of the Base API.
Code Example
base/version.h
/***************************************************************************************************
* Copyright 2024 NVIDIA Corporation. All rights reserved.
**************************************************************************************************/
#ifndef MI_BASE_VERSION_H
#define MI_BASE_VERSION_H
#include <mi/base/config.h>
// No DLL API yet, make this API version 0 and do not document it in the manual.
//
// API version number.
//
// A change in this version number indicates that the binary compatibility
// of the interfaces offered through the shared library have changed.
// Older versions can then explicitly asked for.
#define MI_BASE_API_VERSION 0
// The following three to four macros define the API version.
// The macros thereafter are defined in terms of the first four.
#define MI_BASE_VERSION_MAJOR 1
#define MI_BASE_VERSION_MINOR 0
#define MI_BASE_VERSION_QUALIFIER ""
// This macro is defined if #MI_BASE_VERSION_QUALIFIER is the empty string \c "".
#define MI_BASE_VERSION_QUALIFIER_EMPTY
#define MI_BASE_VERSION_STRING MI_BASE_STRINGIZE(MI_BASE_VERSION_MAJOR) "." \
MI_BASE_STRINGIZE(MI_BASE_VERSION_MINOR)
#ifdef MI_BASE_VERSION_QUALIFIER_EMPTY
#define MI_BASE_VERSION_QUALIFIED_STRING MI_BASE_VERSION_STRING
#else
#define MI_BASE_VERSION_QUALIFIED_STRING MI_BASE_VERSION_STRING "-" MI_BASE_VERSION_QUALIFIER
#endif // MI_BASE_VERSION_QUALIFIER_EMPTY
// end group mi_base_version
#endif // MI_BASE_VERSION_H
Defines
- #define 1
- Base API major version number. More...
- #define 0
- Base API minor version number. More...
- #define MI_BASE_VERSION_STRING
- Base API major and minor version number and qualifier in a string representation, such as "1.1" or "1.2-beta2". More...
- #define ""
- Base API version qualifier. More...
- #define
- Base API major and minor version number without qualifier in a string representation, such as "1.1". More...