ReactOS 0.4.16-dev-2104-gb84fa49
eh.h File Reference
#include <corecrt.h>
#include <pshpack8.h>
#include <poppack.h>
Include dependency graph for eh.h:

Go to the source code of this file.

Typedefs

typedef void(__cdeclterminate_handler) (void)
 
typedef void(__cdeclterminate_function) (void)
 
typedef void(__cdeclunexpected_handler) (void)
 
typedef void(__cdeclunexpected_function) (void)
 
typedef void(__cdecl_se_translator_function) (unsigned int code, struct _EXCEPTION_POINTERS *info)
 

Functions

_ACRTIMP terminate_function __cdecl set_terminate (terminate_function func)
 
_ACRTIMP unexpected_function __cdecl set_unexpected (unexpected_function func)
 
_ACRTIMP _se_translator_function __cdecl set_se_translator (_se_translator_function func)
 
_ACRTIMP DECLSPEC_NORETURN void __cdecl terminate (void)
 
_ACRTIMP DECLSPEC_NORETURN void __cdecl unexpected (void)
 

Typedef Documentation

◆ _se_translator_function

typedef void(__cdecl * _se_translator_function) (unsigned int code, struct _EXCEPTION_POINTERS *info)

Definition at line 37 of file eh.h.

◆ terminate_function

typedef void(__cdecl * terminate_function) (void)

Definition at line 34 of file eh.h.

◆ terminate_handler

typedef void(__cdecl * terminate_handler) (void)

Definition at line 33 of file eh.h.

◆ unexpected_function

typedef void(__cdecl * unexpected_function) (void)

Definition at line 36 of file eh.h.

◆ unexpected_handler

typedef void(__cdecl * unexpected_handler) (void)

Definition at line 35 of file eh.h.

Function Documentation

◆ set_se_translator()

◆ set_terminate()

Definition at line 624 of file cpp.c.

625{
627 terminate_function previous = data->terminate_handler;
628 TRACE("(%p) returning %p\n",func,previous);
629 data->terminate_handler = func;
630 return previous;
631}
void(__cdecl * terminate_function)(void)
Definition: eh.h:34
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: thread.c:45
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLenum func
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4

◆ set_unexpected()

Definition at line 654 of file cpp.c.

655{
657 unexpected_function previous = data->unexpected_handler;
658 TRACE("(%p) returning %p\n",func,previous);
659 data->unexpected_handler = func;
660 return previous;
661}
void(__cdecl * unexpected_function)(void)
Definition: eh.h:36

◆ terminate()

Definition at line 698 of file cpp.c.

699{
701 if (data->terminate_handler) data->terminate_handler();
702 abort();
703}
#define abort()
Definition: i386-dis.c:34

◆ unexpected()

Definition at line 708 of file cpp.c.

709{
711 if (data->unexpected_handler) data->unexpected_handler();
712 terminate();
713}
void CDECL terminate(void)
Definition: cpp.c:698