Reactos
at master 44 lines 1.5 kB view raw
1/** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the w64 mingw-runtime package. 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 */ 6#include <corecrt.h> 7 8#ifndef _EH_H_ 9#define _EH_H_ 10 11#ifndef RC_INVOKED 12 13#pragma pack(push,_CRT_PACKING) 14 15#ifndef __cplusplus 16#error eh.h is only for C++! 17#endif 18 19extern "C++" { 20 _VCRT_EXPORT_STD class type_info; 21} 22 23typedef void (__cdecl *terminate_function)(void); 24typedef void (__cdecl *terminate_handler)(void); 25typedef void (__cdecl *unexpected_function)(void); 26typedef void (__cdecl *unexpected_handler)(void); 27 28struct _EXCEPTION_POINTERS; 29typedef void (__cdecl *_se_translator_function)(unsigned int,struct _EXCEPTION_POINTERS *); 30 31_CRTIMP __declspec(noreturn) void __cdecl terminate(void) throw(); 32_CRTIMP void __cdecl unexpected(void); 33_CRTIMP int __cdecl _is_exception_typeof(const type_info &_Type,struct _EXCEPTION_POINTERS *_ExceptionPtr); 34_CRTIMP terminate_function __cdecl set_terminate(terminate_function _NewPtFunc) throw(); 35extern "C" _CRTIMP terminate_function __cdecl _get_terminate(void); 36_CRTIMP unexpected_function __cdecl set_unexpected(unexpected_function _NewPtFunc); 37extern "C" _CRTIMP unexpected_function __cdecl _get_unexpected(void); 38_CRTIMP _se_translator_function __cdecl _set_se_translator(_se_translator_function _NewPtFunc); 39_CRTIMP bool __cdecl __uncaught_exception(void); 40 41#pragma pack(pop) 42#endif 43#endif /* End _EH_H_ */ 44