ReactOS 0.4.16-dev-2284-g3529151
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 625 of file cpp.c.

626{
628 terminate_function previous = data->terminate_handler;
629 TRACE("(%p) returning %p\n",func,previous);
630 data->terminate_handler = func;
631 return previous;
632}
void(__cdecl * terminate_function)(void)
Definition: eh.h:34
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: ucrt_tls_sup.c:59
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 656 of file cpp.c.

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

◆ terminate()

Definition at line 701 of file cpp.c.

702{
704 if (data->terminate_handler) data->terminate_handler();
705 abort();
706}
#define abort()
Definition: i386-dis.c:34

◆ unexpected()

Definition at line 711 of file cpp.c.

712{
714 if (data->unexpected_handler) data->unexpected_handler();
715 terminate();
716}
void CDECL terminate(void)
Definition: cpp.c:701