#include <stdarg.h>
#include <isc/formatcheck.h>
#include <isc/lang.h>
#include <isc/platform.h>
Go to the source code of this file.
Defines | |
#define | ISC_ERROR_H 1 |
#define | ISC_ERROR_RUNTIMECHECK(cond) |
Functions | |
void | isc_error_setunexpected (isc_errorcallback_t) |
set unexpected error | |
void | isc_error_setfatal (isc_errorcallback_t) |
set fatal error | |
void | isc_error_unexpected (const char *, int, const char *,...) ISC_FORMAT_PRINTF(3 |
unexpected error | |
void ISC_PLATFORM_NORETURN_PRE void | isc_error_fatal (const char *, int, const char *,...) ISC_FORMAT_PRINTF(3 |
fatal error | |
void | isc_error_runtimecheck (const char *, int, const char *) |
runtimecheck error | |
Variables | |
ISC_LANG_BEGINDECLS typedef void(* | isc_errorcallback_t )(const char *, int, const char *, va_list) |
void ISC_PLATFORM_NORETURN_PRE void | ISC_PLATFORM_NORETURN_POST |
Definition in file error.h.
#define ISC_ERROR_RUNTIMECHECK | ( | cond | ) |
Value:
((void) ((cond) || \ ((isc_error_runtimecheck)(__FILE__, __LINE__, #cond), 0)))
void isc_error_setunexpected | ( | isc_errorcallback_t | ) |
void isc_error_setfatal | ( | isc_errorcallback_t | ) |
set fatal error
Definition at line 53 of file error.c.
References default_fatal_callback().
Referenced by library_fatal_error(), and main().
void isc_error_unexpected | ( | const char * | , | |
int | , | |||
const char * | , | |||
... | ||||
) |
unexpected error
void ISC_PLATFORM_NORETURN_PRE void isc_error_fatal | ( | const char * | , | |
int | , | |||
const char * | , | |||
... | ||||
) |
fatal error
void isc_error_runtimecheck | ( | const char * | , | |
int | , | |||
const char * | ||||
) |
runtimecheck error
Definition at line 80 of file error.c.
References isc_error_fatal(), ISC_MSG_FAILED, isc_msgcat_get(), and ISC_MSGSET_GENERAL.
ISC_LANG_BEGINDECLS typedef void(* isc_errorcallback_t)(const char *, int, const char *, va_list) |
void ISC_PLATFORM_NORETURN_PRE void ISC_PLATFORM_NORETURN_POST |