STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcruntime_new_debug.h
Go to the documentation of this file.
1 //
2 // vcruntime_new_debug.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // Declarations and definitions of the debug operators new and delete.
7 //
8 #pragma once
9 
10 #include <vcruntime_new.h>
11 
12 #ifdef __cplusplus
13 extern "C++" {
14 
15 #pragma pack(push, _CRT_PACKING)
16 
17 #pragma push_macro("new")
18 #undef new
19 
20 #ifndef _MFC_OVERRIDES_NEW
21 
23  _VCRT_ALLOCATOR void* __CRTDECL operator new(
24  _In_ size_t _Size,
25  _In_ int _BlockUse,
26  _In_z_ char const* _FileName,
27  _In_ int _LineNumber
28  );
29 
31  _VCRT_ALLOCATOR void* __CRTDECL operator new[](
32  _In_ size_t _Size,
33  _In_ int _BlockUse,
34  _In_z_ char const* _FileName,
35  _In_ int _LineNumber
36  );
37 
38  void __CRTDECL operator delete(
39  void* _Block,
40  int _BlockUse,
41  char const* _FileName,
42  int _LineNumber
43  ) throw();
44 
45  void __CRTDECL operator delete[](
46  void* _Block,
47  int _BlockUse,
48  char const* _FileName,
49  int _LineNumber
50  ) throw();
51 
52 #endif
53 
54 #pragma pop_macro("new")
55 
56 #pragma pack(pop)
57 
58 } // extern "C++"
59 #endif // __cplusplus
#define __CRTDECL
Definition: vcruntime.h:156
#define _Check_return_
Definition: sal.h:554
#define _In_z_
Definition: sal.h:310
#define _In_
Definition: sal.h:305
#define _Ret_notnull_
Definition: sal.h:525
#define _VCRT_ALLOCATOR
Definition: vcruntime.h:163
#define _Post_writable_byte_size_(size)
Definition: sal.h:649
_Size
Definition: vcruntime_string.h:36