ReactOS 0.4.16-dev-340-g0540c21
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 299 of file except.c.

300{
301 return msvcrt_get_thread_data()->processing_throw != 0;
302}
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31

◆ _get_terminate()

_CRTIMP terminate_function __cdecl _get_terminate ( void  )

Definition at line 654 of file cpp.c.

655{
657 TRACE("returning %p\n", data->terminate_handler);
658 return data->terminate_handler;
659}
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 684 of file cpp.c.

685{
687 TRACE("returning %p\n", data->unexpected_handler);
688 return data->unexpected_handler;
689}

◆ _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 694 of file cpp.c.

695{
697 _se_translator_function previous = data->se_translator;
698 TRACE("(%p) returning %p\n",func,previous);
699 data->se_translator = func;
700 return previous;
701}
GLenum func
Definition: glext.h:6028
void(__cdecl * _se_translator_function)(unsigned int, struct _EXCEPTION_POINTERS *)
Definition: eh.h:29

◆ set_terminate()

_CRTIMP terminate_function __cdecl set_terminate ( terminate_function  _NewPtFunc)
throw (
)

Definition at line 642 of file cpp.c.

643{
645 terminate_function previous = data->terminate_handler;
646 TRACE("(%p) returning %p\n",func,previous);
647 data->terminate_handler = func;
648 return previous;
649}
void(__cdecl * terminate_function)(void)
Definition: eh.h:23

Referenced by main(), and Terminate1().

◆ set_unexpected()

_CRTIMP unexpected_function __cdecl set_unexpected ( unexpected_function  _NewPtFunc)

Definition at line 672 of file cpp.c.

673{
675 unexpected_function previous = data->unexpected_handler;
676 TRACE("(%p) returning %p\n",func,previous);
677 data->unexpected_handler = func;
678 return previous;
679}
void(__cdecl * unexpected_function)(void)
Definition: eh.h:25

◆ unexpected()

_CRTIMP void __cdecl unexpected ( void  )

Definition at line 726 of file cpp.c.

727{
729 if (data->unexpected_handler) data->unexpected_handler();
730 terminate();
731}
void CDECL terminate(void)
Definition: cpp.c:716