6#ifndef OPENVDB_UTIL_ASSERT_HAS_BEEN_INCLUDED
7#define OPENVDB_UTIL_ASSERT_HAS_BEEN_INCLUDED
10#include <openvdb/version.h>
26 const char *assertion,
30 const char* msg =
nullptr);
35#ifdef OPENVDB_ENABLE_ASSERTS
36#define OPENVDB_ASSERT(X) \
37 (OPENVDB_LIKELY(X) ? (void)0 : openvdb::assertAbort(#X, __FILE__, __LINE__, __PRETTY_FUNCTION__))
38#define OPENVDB_ASSERT_MESSAGE(X, MSG) \
39 (OPENVDB_LIKELY(X) ? (void)0 : openvdb::assertAbort(#X, __FILE__, __LINE__, __PRETTY_FUNCTION__, MSG))
41#define OPENVDB_ASSERT(X) (void)0;
42#define OPENVDB_ASSERT_MESSAGE(X, MSG) (void)0;
void assertAbort(const char *assertion, const char *file, const unsigned line, const char *function, const char *msg=nullptr)
Trigger a SIGABRT after printing a formatted assertion message. Effectively performs the same functio...
Definition Exceptions.h:13
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218