eh.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #include <crtdefs.h>
  7. #ifndef _EH_H_
  8. #define _EH_H_
  9. #ifndef RC_INVOKED
  10. #pragma pack(push,_CRT_PACKING)
  11. #ifndef __cplusplus
  12. #error eh.h is only for C++!
  13. #endif
  14. typedef void (__cdecl *terminate_function)();
  15. typedef void (__cdecl *terminate_handler)();
  16. typedef void (__cdecl *unexpected_function)();
  17. typedef void (__cdecl *unexpected_handler)();
  18. struct _EXCEPTION_POINTERS;
  19. typedef void (__cdecl *_se_translator_function)(unsigned int,struct _EXCEPTION_POINTERS *);
  20. _CRTIMP __MINGW_ATTRIB_NORETURN void __cdecl terminate(void);
  21. _CRTIMP void __cdecl unexpected(void);
  22. _CRTIMP int __cdecl _is_exception_typeof(const std::type_info &_Type,struct _EXCEPTION_POINTERS *_ExceptionPtr);
  23. _CRTIMP terminate_function __cdecl set_terminate(terminate_function _NewPtFunc);
  24. extern "C" _CRTIMP terminate_function __cdecl _get_terminate(void);
  25. _CRTIMP unexpected_function __cdecl set_unexpected(unexpected_function _NewPtFunc);
  26. extern "C" _CRTIMP unexpected_function __cdecl _get_unexpected(void);
  27. _CRTIMP _se_translator_function __cdecl _set_se_translator(_se_translator_function _NewPtFunc);
  28. _CRTIMP bool __cdecl __uncaught_exception();
  29. #pragma pack(pop)
  30. #endif
  31. #endif /* End _EH_H_ */