Commit 4e507aaa authored by Bob Halley's avatar Bob Halley
Browse files

add assertion and error macros

parent 35ffe865
......@@ -110,9 +110,6 @@
/*
* List Macros.
*
* These are provided as a temporary measure to ease the transition
* to the renamed list macros in <isc/list.h>.
*/
#include <isc/list.h>
......@@ -135,4 +132,21 @@
#define INSERTAFTER(li, a, e, ln) ISC_LIST_INSERTAFTER(li, a, e, ln)
#define APPENDLIST(list1, list2, link) ISC_LIST_APPENDLIST(list1, list2, link)
/*
* Assertions
*/
#define REQUIRE(e) ISC_REQUIRE(e)
#define ENSURE(e) ISC_ENSURE(e)
#define INSIST(e) ISC_INSIST(e)
#define INVARIANT(e) ISC_INVARIANT(e)
/*
* Errors
*/
#define UNEXPECTED_ERROR isc_error_unexpected
#define FATAL_ERROR isc_error_fatal
#define RUNTIME_CHECK(cond) ISC_ERROR_RUNTIMECHECK(cond)
#endif /* ISC_UTIL_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment