Structured exception handling supplements.
◆ __except_execute
#define __except_execute __except( EXCEPTION_EXECUTE_HANDLER ) |
Convenient finger saver
Definition at line 647 of file Common.h.
◆ FACILITY_ULIB
#define FACILITY_ULIB 0x800 |
Facility code for custom uLib exceptions.
Definition at line 654 of file Common.h.
◆ MAKE_SOFTEXCEPTION
#define MAKE_SOFTEXCEPTION |
( |
|
Severity, |
|
|
|
Facility, |
|
|
|
Exception |
|
) |
| |
Value: ((Severity) << 0) | \
(1 << 29) | \
(0 << 28) | \
((Facility) << 16) | \
((Exception) << 0)))
Useful macro for creating your own software exception codes.
Credited to Jeff Richter, MSJ 1995. Example:
#define SE_KILLTHREAD MAKE_SOFTEXCEPTION( ERROR_SEVERITY_ERROR, FACILITY_ULIB, 1 )
Definition at line 662 of file Common.h.