GNU libmicrohttpd 1.0.0
Loading...
Searching...
No Matches
mhd_panic.h File Reference

MHD_panic() function and helpers. More...

#include "mhd_options.h"
Include dependency graph for mhd_panic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BUILTIN_NOT_REACHED
 
#define MHD_PANIC(msg)
 

Variables

void(* mhd_panic )(void *cls, const char *file, unsigned int line, const char *reason)
 
void * mhd_panic_cls
 

Detailed Description

MHD_panic() function and helpers.

Declaration and macros for MHD_panic()

Author
Daniel Pittman
Christian Grothoff
Karlson2k (Evgeny Grin)

Definition in file mhd_panic.h.

Macro Definition Documentation

◆ BUILTIN_NOT_REACHED

#define BUILTIN_NOT_REACHED

Definition at line 46 of file mhd_panic.h.

◆ MHD_PANIC

#define MHD_PANIC ( msg)
Value:
do { mhd_panic (mhd_panic_cls, __FILE__, __LINE__, NULL); \
BUILTIN_NOT_REACHED; } while (0)
#define NULL
#define BUILTIN_NOT_REACHED
Definition mhd_panic.h:46
void(* mhd_panic)(void *cls, const char *file, unsigned int line, const char *reason)
void * mhd_panic_cls
Definition panic.c:36

Trigger 'panic' action based on fatal errors.

Parameters
msgerror message (const char *)

Definition at line 78 of file mhd_panic.h.

Variable Documentation

◆ mhd_panic

void(* mhd_panic) (void *cls, const char *file, unsigned int line, const char *reason) ( void * cls,
const char * file,
unsigned int line,
const char * reason )
extern

Handler for fatal errors.

◆ mhd_panic_cls

void* mhd_panic_cls
extern

Closure argument for "mhd_panic".

Closure argument for mhd_panic.

Definition at line 36 of file panic.c.

Referenced by MHD_set_panic_func().