STLdoc
STLdocumentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eh.h
Go to the documentation of this file.
1 //
2 // eh.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // User-includable header for exception handling.
7 //
8 #pragma once
9 #define _INC_EH
10 
11 #include <corecrt_terminate.h>
12 
13 #ifndef RC_INVOKED
14 
16 
17 // unexpected_handler is the standard name; unexpected_function is defined for
18 // source compatibility.
19 typedef void (__CRTDECL* unexpected_handler )();
21 
22 #ifdef _M_CEE
23  typedef void (__clrcall* __unexpected_function_m)();
24  typedef void (__clrcall* __unexpected_handler_m)();
25 #endif
26 
27 struct _EXCEPTION_POINTERS;
28 
29 #ifdef __cplusplus
30 
31  _VCRTIMP __declspec(noreturn) void __cdecl unexpected() throw(...);
32 
33  #ifndef _M_CEE_PURE
34 
36  _In_opt_ unexpected_handler _NewUnexpectedHandler
37  ) throw();
38 
39  _VCRTIMP unexpected_handler __cdecl _get_unexpected();
40 
41  typedef void (__cdecl* _se_translator_function)(unsigned int, struct _EXCEPTION_POINTERS*);
42 
43  _VCRTIMP _se_translator_function __cdecl _set_se_translator(
44  _In_opt_ _se_translator_function _NewSETranslator
45  );
46 
47  #endif
48 
49  class type_info;
50 
51  _VCRTIMP int __cdecl _is_exception_typeof(
52  _In_ type_info const& _Type,
53  _In_ _EXCEPTION_POINTERS* _ExceptionPtr
54  );
55 
56  _VCRTIMP bool __cdecl __uncaught_exception();
57  _VCRTIMP int __cdecl __uncaught_exceptions();
58 
59 #endif
60 
62 
63 #endif // RC_INVOKED
void __CRTDECL unexpected()
Definition: exception:212
#define _VCRTIMP
Definition: vcruntime.h:115
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
unsigned int
Definition: vccorlib.h:2468
#define __CRTDECL
Definition: vcruntime.h:156
void(__cdecl * unexpected_handler)()
Definition: exception:193
#define _In_
Definition: sal.h:305
#define _In_opt_
Definition: sal.h:306
void(__CRTDECL * unexpected_function)()
Definition: eh.h:20
unexpected_handler __CRTDECL set_unexpected(unexpected_handler) _THROW0()
Definition: exception:202
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
__interface __declspec(uuid("00000035-0000-0000-C000-000000000046")) __abi_IActivationFactory
Definition: vccorlib.h:286
_CRT_BEGIN_C_HEADER typedef void(__CRTDECL *unexpected_handler)()
Definition: vcruntime_typeinfo.h:62