38 #ifndef included_error_bootstrap_h 39 #define included_error_bootstrap_h 55 #define clib_error_function ((char *) __FUNCTION__) 57 #ifndef CLIB_ASSERT_ENABLE 58 #define CLIB_ASSERT_ENABLE (CLIB_DEBUG > 0) 64 extern void _clib_error (
int code,
69 #define ASSERT(truth) \ 71 if (CLIB_ASSERT_ENABLE && ! (truth)) \ 73 _clib_error (CLIB_ERROR_ABORT, 0, 0, \ 74 "%s:%d (%s) assertion `%s' fails", \ 77 clib_error_function, \ 83 #define ASSERT_AND_PANIC(truth) \ 85 if (CLIB_ASSERT_ENABLE && ! (truth)) \