error.h File Reference

#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


Detailed Description

Definition in file error.h.


Define Documentation

#define ISC_ERROR_H   1

Definition at line 21 of file error.h.

#define ISC_ERROR_RUNTIMECHECK ( cond   ) 

Value:

((void) ((cond) || \
                 ((isc_error_runtimecheck)(__FILE__, __LINE__, #cond), 0)))

Definition at line 57 of file error.h.


Function Documentation

void isc_error_setunexpected ( isc_errorcallback_t   ) 

set unexpected error

Referenced by main().

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.


Variable Documentation

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 at line 51 of file error.h.


Generated on Tue Apr 28 17:41:15 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha