diff options
-rw-r--r-- | src/util.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -21,8 +21,17 @@ #define _LD_UTIL_H_ #define CHECK(op) \ - do { result = (op); \ - if (result != ISC_R_SUCCESS) goto cleanup; \ + do { \ + result = (op); \ + if (result != ISC_R_SUCCESS) \ + goto cleanup; \ + } while (0) + +#define CHECK_NEXT(op) \ + do { \ + result = (op); \ + if (result != ISC_R_SUCCESS) \ + goto next; \ } while (0) #define CHECKED_MEM_ALLOCATE(m, target_ptr, s) \ |