Begin a TRY/CATCH block¶
SAF_TRY_BEGIN
is a symbol defined in saf.h.
Synopsis:
-
SAF_TRY_BEGIN
¶
Description: Use this macro to demarcate the beginning of a block of code in which exceptions shall be caught.
Issues: We should be clear about what happens in this block if the library properties are set to SAF__ERRMODE_RETURN
rather than SAF__ERRMODE_THROW
.
Should we add code here to check to make sure saf_init is called first. I think that would make some sense.
See Also:
- saf_init: 4.3: Initialize the library
- Error Handling: Introduction for current chapter