2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

add assertion and error macros

This commit is contained in:
Bob Halley
2000-04-28 01:03:42 +00:00
parent 35ffe86508
commit 4e507aaa4e

View File

@@ -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 */