42 #ifndef OPENVDB_VERSION_HAS_BEEN_INCLUDED
43 #define OPENVDB_VERSION_HAS_BEEN_INCLUDED
51 #define OPENVDB_PREPROC_STRINGIFY_(x) #x
56 #define OPENVDB_PREPROC_STRINGIFY(x) OPENVDB_PREPROC_STRINGIFY_(x)
59 #define OPENVDB_PREPROC_CONCAT_(x, y) x ## y
64 #define OPENVDB_PREPROC_CONCAT(x, y) OPENVDB_PREPROC_CONCAT_(x, y)
68 #define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER 7
69 #define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER 1
70 #define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER 0
74 #ifdef OPENVDB_ABI_VERSION_NUMBER
75 #if OPENVDB_ABI_VERSION_NUMBER > OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
76 #error expected OPENVDB_ABI_VERSION_NUMBER <= OPENVDB_LIBRARY_MAJOR VERSION_NUMBER
79 #define OPENVDB_ABI_VERSION_NUMBER OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
86 #ifndef OPENVDB_USE_DEPRECATED_ABI_5
87 #if OPENVDB_ABI_VERSION_NUMBER == 5
88 PRAGMA(
message(
"NOTE: ABI = 5 is deprecated, CMake option OPENVDB_USE_DEPRECATED_ABI_5 "
89 "suppresses this message"))
93 #if OPENVDB_ABI_VERSION_NUMBER == OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
112 #define OPENVDB_VERSION_NAME \
113 OPENVDB_PREPROC_CONCAT(v, \
114 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER, \
115 OPENVDB_PREPROC_CONCAT(_, \
116 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MINOR_VERSION_NUMBER, _sesi))))
119 #define OPENVDB_VERSION_NAME \
120 OPENVDB_PREPROC_CONCAT(v, \
121 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER, \
122 OPENVDB_PREPROC_CONCAT(_, \
123 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MINOR_VERSION_NUMBER, \
124 OPENVDB_PREPROC_CONCAT(_sesi_, \
125 OPENVDB_PREPROC_CONCAT(abi, OPENVDB_ABI_VERSION_NUMBER))))))
133 #define OPENVDB_LIBRARY_VERSION_STRING \
134 OPENVDB_PREPROC_STRINGIFY(OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER) "." \
135 OPENVDB_PREPROC_STRINGIFY(OPENVDB_LIBRARY_MINOR_VERSION_NUMBER) "." \
136 OPENVDB_PREPROC_STRINGIFY(OPENVDB_LIBRARY_PATCH_VERSION_NUMBER)
143 #define OPENVDB_LIBRARY_ABI_VERSION_STRING \
144 OPENVDB_LIBRARY_VERSION_STRING "abi" OPENVDB_PREPROC_STRINGIFY(OPENVDB_ABI_VERSION_NUMBER)
147 #define OPENVDB_LIBRARY_VERSION_NUMBER \
148 ((OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER << 24) | \
149 ((OPENVDB_LIBRARY_MINOR_VERSION_NUMBER & 0xFF) << 16) | \
150 (OPENVDB_LIBRARY_PATCH_VERSION_NUMBER & 0xFFFF))
161 #ifdef OPENVDB_REQUIRE_VERSION_NAME
162 #define OPENVDB_USE_VERSION_NAMESPACE
166 #define OPENVDB_USE_VERSION_NAMESPACE \
167 namespace OPENVDB_VERSION_NAME {} \
168 using namespace OPENVDB_VERSION_NAME;
231 #endif // OPENVDB_VERSION_HAS_BEEN_INCLUDED
#define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER
constexpr const char * getLibraryAbiVersionString()
Return a library version number string of the form "<major>.<minor>.<patch>abi<abi>".
const int32_t OPENVDB_MAGIC
The magic number is stored in the first four bytes of every VDB file.
const uint32_t OPENVDB_LIBRARY_PATCH_VERSION
#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER
#define OPENVDB_LIBRARY_VERSION_STRING
Library version number string of the form "<major>.<minor>.<patch>".
#define OPENVDB_USE_VERSION_NAMESPACE
#define OPENVDB_ABI_VERSION_NUMBER
#define OPENVDB_LIBRARY_VERSION_NUMBER
Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)
const uint32_t OPENVDB_LIBRARY_VERSION
Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)
GLsizei GLenum GLuint GLuint GLsizei GLchar * message
VersionId(uint32_t major, uint32_t minor)
const uint32_t OPENVDB_LIBRARY_MAJOR_VERSION
#define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
#define OPENVDB_LIBRARY_ABI_VERSION_STRING
Library version number string of the form "<major>.<minor>.<patch>abi<abi>".
const uint32_t OPENVDB_LIBRARY_MINOR_VERSION
const uint32_t OPENVDB_ABI_VERSION
constexpr const char * getLibraryVersionString()
Return a library version number string of the form "<major>.<minor>.<patch>".
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
const uint32_t OPENVDB_FILE_VERSION
The current version number of the VDB file format.