ReactOS 0.4.16-dev-2122-g1628f5e
eh.h File Reference
#include <corecrt.h>
Include dependency graph for eh.h:

Go to the source code of this file.

Typedefs

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

Functions

_CRTIMP __declspec (noreturn) void __cdecl terminate(void) throw ()
 
_CRTIMP void __cdecl unexpected (void)
 
_CRTIMP int __cdecl _is_exception_typeof (const type_info &_Type, struct _EXCEPTION_POINTERS *_ExceptionPtr)
 
_CRTIMP terminate_function __cdecl set_terminate (terminate_function _NewPtFunc) throw ()
 
_CRTIMP terminate_function __cdecl _get_terminate (void)
 
_CRTIMP unexpected_function __cdecl set_unexpected (unexpected_function _NewPtFunc)
 
_CRTIMP unexpected_function __cdecl _get_unexpected (void)
 
_CRTIMP _se_translator_function __cdecl _set_se_translator (_se_translator_function _NewPtFunc)
 
_CRTIMP bool __cdecl __uncaught_exception (void)
 

Typedef Documentation

◆ _se_translator_function

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

Definition at line 29 of file eh.h.

◆ terminate_function

typedef void(__cdecl * terminate_function) (void)

Definition at line 23 of file eh.h.

◆ terminate_handler

typedef void(__cdecl * terminate_handler) (void)

Definition at line 24 of file eh.h.

◆ unexpected_function

typedef void(__cdecl * unexpected_function) (void)

Definition at line 25 of file eh.h.

◆ unexpected_handler

typedef void(__cdecl * unexpected_handler) (void)

Definition at line 26 of file eh.h.

Function Documentation

◆ __declspec()

_CRTIMP __declspec ( noreturn  )
throw (
)

Definition at line 19 of file noreturn.cpp.

21{
22 throw 1;
23}

◆ __uncaught_exception()

_CRTIMP bool __cdecl __uncaught_exception ( void  )

Definition at line 821 of file except.c.

822{
823 return msvcrt_get_thread_data()->processing_throw != 0;
824}
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: thread.c:45

◆ _get_terminate()

_CRTIMP terminate_function __cdecl _get_terminate ( void  )

Definition at line 636 of file cpp.c.

637{
639 TRACE("returning %p\n", data->terminate_handler);
640 return data->terminate_handler;
641}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
#define TRACE(s)
Definition: solgame.cpp:4

◆ _get_unexpected()

_CRTIMP unexpected_function __cdecl _get_unexpected ( void  )

Definition at line 666 of file cpp.c.

667{
669 TRACE("returning %p\n", data->unexpected_handler);
670 return data->unexpected_handler;
671}

◆ _is_exception_typeof()

_CRTIMP int __cdecl _is_exception_typeof ( const type_info _Type,
struct _EXCEPTION_POINTERS _ExceptionPtr 
)

◆ _set_se_translator()

_CRTIMP _se_translator_function __cdecl _set_se_translator ( _se_translator_function  _NewPtFunc)

Definition at line 676 of file cpp.c.

677{
679 _se_translator_function previous = data->se_translator;
680 TRACE("(%p) returning %p\n",func,previous);
681 data->se_translator = func;
682 return previous;
683}
void(__cdecl * _se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info)
Definition: eh.h:37
GLenum func
Definition: glext.h:6028

◆ set_terminate()

_CRTIMP terminate_function __cdecl set_terminate ( terminate_function  _NewPtFunc)
throw (
)

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

◆ set_unexpected()

_CRTIMP unexpected_function __cdecl set_unexpected ( unexpected_function  _NewPtFunc)

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

◆ unexpected()

_CRTIMP void __cdecl unexpected ( void  )

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