64 const char *OP_DESCR_STR,
72 static bool _isExceptionHandlingEnabled;
76#if !defined(DISABLE_ERRORTRACING)
79#define SO_CATCH_START \
80 if (!SoCatch::isExceptionHandlingEnabled()) {
91#define SO_CATCH_ELSE(CODE_BEFORE_TRY) \
161#define SO_CATCH_END(ERR_OBJ_TYPE_ID, OP_DESCR_STR, ACTION_TYPE_ID, END_STR) \
170 SoCatch::postExceptionMessage(ERR_OBJ_TYPE_ID, \
176 SoError::post("<Could not create error message " \
177 "after catching fatal error>"); \
184#define SO_CATCH_START \
186#define SO_CATCH_ELSE(CODE_BEFORE_TRY) \
189#define SO_CATCH_END(ERR_OBJ_TYPE_ID, OP_DESCR_STR, ACTION_TYPE_ID, END_STR) \
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Class containing static functions to control global exception handling for OpenInventor.
static void postExceptionMessage(SoType ERR_OBJ_TYPE_ID, const char *OP_DESCR_STR, SoType ACTION_TYPE_ID, const char *END_STR)
Posts composed error message.
static void initClass()
Initializes the SoCatch class.
static void enableExceptionHandling(bool on)
Function to enabled/disable exception handling for all SO_CATCH* macros when passing TRUE/FALSE.
static bool isExceptionHandlingEnabled()
Function to query exception handling for all SO_CATCH* macros.
SoType has no virtual functions to keep it small...