42 #ifndef OPENVDB_VERSION_HAS_BEEN_INCLUDED
43 #define OPENVDB_VERSION_HAS_BEEN_INCLUDED
52 #define OPENVDB_PREPROC_STRINGIFY_(x) #x
57 #define OPENVDB_PREPROC_STRINGIFY(x) OPENVDB_PREPROC_STRINGIFY_(x)
60 #define OPENVDB_PREPROC_CONCAT_(x, y) x ## y
65 #define OPENVDB_PREPROC_CONCAT(x, y) OPENVDB_PREPROC_CONCAT_(x, y)
69 #define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER 7
70 #define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER 2
71 #define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER 2
75 #ifdef OPENVDB_ABI_VERSION_NUMBER
76 #if OPENVDB_ABI_VERSION_NUMBER > OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
77 #error expected OPENVDB_ABI_VERSION_NUMBER <= OPENVDB_LIBRARY_MAJOR VERSION_NUMBER
80 #define OPENVDB_ABI_VERSION_NUMBER OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
87 #ifndef OPENVDB_USE_DEPRECATED_ABI_5
88 #if OPENVDB_ABI_VERSION_NUMBER == 5
89 PRAGMA(
message(
"NOTE: ABI = 5 is deprecated, CMake option OPENVDB_USE_DEPRECATED_ABI_5 "
90 "suppresses this message"))
94 #if OPENVDB_ABI_VERSION_NUMBER == OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
113 #define OPENVDB_VERSION_NAME \
114 OPENVDB_PREPROC_CONCAT(v, \
115 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER, \
116 OPENVDB_PREPROC_CONCAT(_, \
117 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MINOR_VERSION_NUMBER, _sesi))))
120 #define OPENVDB_VERSION_NAME \
121 OPENVDB_PREPROC_CONCAT(v, \
122 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER, \
123 OPENVDB_PREPROC_CONCAT(_, \
124 OPENVDB_PREPROC_CONCAT(OPENVDB_LIBRARY_MINOR_VERSION_NUMBER, \
125 OPENVDB_PREPROC_CONCAT(_sesi_, \
126 OPENVDB_PREPROC_CONCAT(abi, OPENVDB_ABI_VERSION_NUMBER))))))
134 #define OPENVDB_LIBRARY_VERSION_STRING \
135 OPENVDB_PREPROC_STRINGIFY(OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER) "." \
136 OPENVDB_PREPROC_STRINGIFY(OPENVDB_LIBRARY_MINOR_VERSION_NUMBER) "." \
137 OPENVDB_PREPROC_STRINGIFY(OPENVDB_LIBRARY_PATCH_VERSION_NUMBER)
144 #define OPENVDB_LIBRARY_ABI_VERSION_STRING \
145 OPENVDB_LIBRARY_VERSION_STRING "abi" OPENVDB_PREPROC_STRINGIFY(OPENVDB_ABI_VERSION_NUMBER)
148 #define OPENVDB_LIBRARY_VERSION_NUMBER \
149 ((OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER << 24) | \
150 ((OPENVDB_LIBRARY_MINOR_VERSION_NUMBER & 0xFF) << 16) | \
151 (OPENVDB_LIBRARY_PATCH_VERSION_NUMBER & 0xFFFF))
162 #ifdef OPENVDB_REQUIRE_VERSION_NAME
163 #define OPENVDB_USE_VERSION_NAMESPACE
167 #define OPENVDB_USE_VERSION_NAMESPACE \
168 namespace OPENVDB_VERSION_NAME {} \
169 using namespace OPENVDB_VERSION_NAME;
232 #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.