ReactOS 0.4.16-dev-1105-gafe29ee
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#pragma warning(push)
13#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
15
16#ifndef RC_INVOKED
17
19
20// terminate_handler is the standard name; terminate_function is defined for
21// source compatibility.
24
25#ifdef _M_CEE
26 typedef void (__clrcall* __terminate_function_m)();
27 typedef void (__clrcall* __terminate_handler_m )();
28#endif
29
30#ifdef __cplusplus
31
32 _ACRTIMP __declspec(noreturn) void __cdecl abort();
33 _ACRTIMP __declspec(noreturn) void __cdecl terminate() throw();
34
35 #ifndef _M_CEE_PURE
36
38 _In_opt_ terminate_handler _NewTerminateHandler
39 ) throw();
40
42
43 #endif
44
45#endif // __cplusplus
46
48
49#endif // RC_INVOKED
51#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
#define __cdecl
Definition: accygwin.h:79
void(__CRTDECL * terminate_function)(void)
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const _Inout_ __crt_cached_ptd_host &ptd throw()
Definition: cvt.cpp:119
void __declspec(noinline) __cdecl _free_base(void *const block)
Definition: free_base.cpp:98
#define abort()
Definition: i386-dis.c:34
_CRTIMP terminate_function __cdecl _get_terminate(void)
Definition: cpp.c:654
void(__cdecl * terminate_handler)(void)
Definition: eh.h:24
_CRTIMP terminate_function __cdecl set_terminate(terminate_function _NewPtFunc)
Definition: cpp.c:642
void MSVCRT() terminate()
Definition: cpp.c:716
#define _In_opt_
Definition: no_sal2.h:212
#define _ACRTIMP
Definition: corecrt.h:138
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117
#define _CRT_END_C_HEADER
Definition: vcruntime.h:42
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:40
#define __CRTDECL
Definition: yvals.h:17