summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 0dd6ee3..82d6550 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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) \