OpenVDB  0.104.0
Macros
Platform.h File Reference
#include <boost/cstdint.hpp>

Go to the source code of this file.

Macros

#define OPENVDB_DEPRECATED   __attribute__ ((deprecated))
 
#define OPENVDB_CHECK_GCC(MAJOR, MINOR)   0
 Macro for determining if GCC version is >= than X.Y. More...
 
#define OPENVDB_STATIC_SPECIALIZATION   static
 
#define _USE_MATH_DEFINES
 
#define OPENVDB_API   OPENVDB_IMPORT
 Helper macros for defining library symbol visibility. More...
 
#define OPENVDB_HOUDINI_API   OPENVDB_IMPORT
 

Macro Definition Documentation

#define _USE_MATH_DEFINES

Visual C++ does not have constants like M_PI unless this is defined.

Note
This is needed even though the core library is built with this but hcustom 12.1 doesn't define it. So this is needed for HDK operators.
#define OPENVDB_API   OPENVDB_IMPORT

Helper macros for defining library symbol visibility.

All classes and public free standing functions must be explicitly marked as <lib>_API to be exported. The <lib>_PRIVATE macros are defined when building that particular library.

#define OPENVDB_CHECK_GCC (   MAJOR,
  MINOR 
)    0

Macro for determining if GCC version is >= than X.Y.

#define OPENVDB_DEPRECATED   __attribute__ ((deprecated))

Use OPENVDB_DEPRECATED to mark functions as deprecated. It should be placed right before the signature of the function, e.g., "OPENVDB_DEPRECATED void functionName();".

#define OPENVDB_HOUDINI_API   OPENVDB_IMPORT
#define OPENVDB_STATIC_SPECIALIZATION   static

For compilers that need templated function specializations to have storage qualifiers, we need to declare the specializations as static inline. Otherwise, we'll get linker errors about multiply defined symbols.