Debian Codegraph @

mingw-w64-headers/crt/new.h

raw
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 #ifndef _INC_NEW
7 #define _INC_NEW
8
9 #include <corecrt.h>
10
11 #ifdef __cplusplus
12 #include <new>
13 #include <crtdefs.h>
14 #pragma push_macro("new")
15 #undef new
16 extern "C" {
17 #endif
18
19 #ifndef __NOTHROW_T_DEFINED
20 #define __NOTHROW_T_DEFINED
21 #endif
22
23 #ifndef __PLACEMENT_NEW_INLINE
24 #define __PLACEMENT_NEW_INLINE
25 #endif
26
27 _CRTIMP int __cdecl _query_new_mode(void);
28 _CRTIMP int __cdecl _set_new_mode(int _NewMode);
29
30 #ifndef _PNH_DEFINED
31 typedef int (__cdecl *_PNH)(size_t);
32 #define _PNH_DEFINED
33 #endif
34
35 _CRTIMP _PNH __cdecl _query_new_handler(void);
36 _CRTIMP _PNH __cdecl _set_new_handler(_PNH _NewHandler);
37
38 #ifndef _NO_ANSI_NH_DEFINED
39 #define _NO_ANSI_NEW_HANDLER ((new_handler)-1)
40 #define _NO_ANSI_NEW_HANDLER_M ((_new_handler_m)-1)
41 #define _NO_ANSI_NH_DEFINED
42 #endif
43
44 #ifdef __cplusplus
45 }
46 #pragma pop_macro("new")
47 #endif
48
49 #endif