Feature Testing Macros

instant3Dhub: Feature Testing Macros
instant3Dhub
Feature Testing Macros

Detailed Description

Macros to test whether certain features or APIs are available.

These macros are intended to make the intent of version checking code clearer. For example, if you want to use the metadata API, you can use defined(INSTANT3DHUB_FEATURE_METADATA) instead of !INSTANT3DHUB_VERSION_OLDER_THAN(1,1,0).

If a feature is available, the macro returns an integer version number of the feature, which is incremented on breaking changes. If a feature is not available, the macro is not defined, so make sure to use #ifdef or defined(...) in preprocessor expressions.

Macros

#define INSTANT3DHUB_FEATURE_METADATA   1
 
#define INSTANT3DHUB_FEATURE_DEBUG_METRICS   1
 

Macro Definition Documentation

◆ INSTANT3DHUB_FEATURE_DEBUG_METRICS

#define INSTANT3DHUB_FEATURE_DEBUG_METRICS   1

Returns the version of the debug metrics API, if available.

See also
AI3DHConnector::GetDebugMetrics()

◆ INSTANT3DHUB_FEATURE_METADATA

#define INSTANT3DHUB_FEATURE_METADATA   1