PCL
Error Handling Macros

Macros

#define ERROR_CLEANUP(cleanup_code)
 Standard PCL error handler macro with cleanup code. More...
 
#define ERROR_HANDLER
 Standard PCL error handler macro. More...
 

Detailed Description

Macro Definition Documentation

◆ ERROR_CLEANUP

#define ERROR_CLEANUP (   cleanup_code)
Value:
catch ( ... ) \
{ \
cleanup_code; \
\
try \
{ \
throw; \
} \
ERROR_HANDLER \
}

Use ERROR_CLEANUP in the same way as the ERROR_HANDLER macro, when you need to specify a local clean up code, e.g. to delete dynamically allocated local variables.

Definition at line 167 of file ErrorHandler.h.

◆ ERROR_HANDLER

#define ERROR_HANDLER

Use the ERROR_HANDLER macro after try blocks in all PCL programs and modules.

Definition at line 99 of file ErrorHandler.h.