STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
corecrt_terminate.h
Go to the documentation of this file.
1 //
2 // corecrt_terminate.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // The terminate handler
7 //
8 #pragma once
9 
10 #include <corecrt.h>
11 
12 #ifndef RC_INVOKED
13 
15 
16 // terminate_handler is the standard name; terminate_function is defined for
17 // source compatibility.
18 typedef void (__CRTDECL* terminate_handler )();
20 
21 #ifdef _M_CEE
22  typedef void (__clrcall* __terminate_function_m)();
23  typedef void (__clrcall* __terminate_handler_m )();
24 #endif
25 
26 #ifdef __cplusplus
27 
28  _ACRTIMP __declspec(noreturn) void __cdecl abort();
29  _ACRTIMP __declspec(noreturn) void __cdecl terminate() throw();
30 
31  #ifndef _M_CEE_PURE
32 
33  _ACRTIMP terminate_handler __cdecl set_terminate(
34  _In_opt_ terminate_handler _NewTerminateHandler
35  ) throw();
36 
37  _ACRTIMP terminate_handler __cdecl _get_terminate();
38 
39  #endif
40 
41 #endif // __cplusplus
42 
44 
45 #endif // RC_INVOKED
#define _ACRTIMP
Definition: corecrt.h:27
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
void __CRTDECL terminate() _NOEXCEPT
Definition: exception:208
#define __CRTDECL
Definition: vcruntime.h:156
#define _In_opt_
Definition: sal.h:306
_CRT_BEGIN_C_HEADER typedef void(__CRTDECL *terminate_handler)()
__interface __declspec(uuid("00000035-0000-0000-C000-000000000046")) __abi_IActivationFactory
Definition: vccorlib.h:286
void(__CRTDECL * terminate_function)()
Definition: corecrt_terminate.h:19
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
terminate_handler __CRTDECL set_terminate(terminate_handler) _THROW0()
Definition: exception:196