Material Definition Language API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
base/version.h
Go to the documentation of this file.
1 /***************************************************************************************************
2  * Copyright 2020 NVIDIA Corporation. All rights reserved.
3  **************************************************************************************************/
8 
9 #ifndef MI_BASE_VERSION_H
10 #define MI_BASE_VERSION_H
11 
12 #include <mi/base/config.h>
13 
27 // No DLL API yet, make this API version 0 and do not document it in the manual.
28 //
29 // API version number.
30 //
31 // A change in this version number indicates that the binary compatibility
32 // of the interfaces offered through the shared library have changed.
33 // Older versions can then explicitly asked for.
34 #define MI_BASE_API_VERSION 0
35 
36 
37 // The following three to four macros define the API version.
38 // The macros thereafter are defined in terms of the first four.
39 
43 #define MI_BASE_VERSION_MAJOR 1
44 
48 #define MI_BASE_VERSION_MINOR 0
49 
58 #define MI_BASE_VERSION_QUALIFIER ""
59 
60 // This macro is defined if #MI_BASE_VERSION_QUALIFIER is the empty string \c "".
61 #define MI_BASE_VERSION_QUALIFIER_EMPTY
62 
65 #define MI_BASE_VERSION_STRING MI_BASE_STRINGIZE(MI_BASE_VERSION_MAJOR) "." \
66  MI_BASE_STRINGIZE(MI_BASE_VERSION_MINOR)
67 
71 #ifdef MI_BASE_VERSION_QUALIFIER_EMPTY
72 #define MI_BASE_VERSION_QUALIFIED_STRING MI_BASE_VERSION_STRING
73 #else
74 #define MI_BASE_VERSION_QUALIFIED_STRING MI_BASE_VERSION_STRING "-" MI_BASE_VERSION_QUALIFIER
75 #endif // MI_BASE_VERSION_QUALIFIER_EMPTY
76 
77  // end group mi_base_version
79 
80 #endif // MI_BASE_VERSION_H