12#pragma pack(push,_CRT_PACKING)
25#define _CRTDBG_MODE_FILE 0x1
26#define _CRTDBG_MODE_DEBUG 0x2
27#define _CRTDBG_MODE_WNDW 0x4
28#define _CRTDBG_REPORT_MODE -1
30#define _CRTDBG_INVALID_HFILE ((_HFILE)-1)
31#define _CRTDBG_HFILE_ERROR ((_HFILE)-2)
32#define _CRTDBG_FILE_STDOUT ((_HFILE)-4)
33#define _CRTDBG_FILE_STDERR ((_HFILE)-5)
34#define _CRTDBG_REPORT_FILE ((_HFILE)-6)
39#define _CRT_RPTHOOK_INSTALL 0
40#define _CRT_RPTHOOK_REMOVE 1
43#define _HOOK_REALLOC 2
48#define _CRTDBG_ALLOC_MEM_DF 0x01
49#define _CRTDBG_DELAY_FREE_MEM_DF 0x02
50#define _CRTDBG_CHECK_ALWAYS_DF 0x04
51#define _CRTDBG_RESERVED_DF 0x08
52#define _CRTDBG_CHECK_CRT_DF 0x10
53#define _CRTDBG_LEAK_CHECK_DF 0x20
55#define _CRTDBG_CHECK_EVERY_16_DF 0x00100000
56#define _CRTDBG_CHECK_EVERY_128_DF 0x00800000
57#define _CRTDBG_CHECK_EVERY_1024_DF 0x04000000
59#define _CRTDBG_CHECK_DEFAULT_DF 0
61#define _CRTDBG_REPORT_FLAG -1
63#define _BLOCK_TYPE(block) (block & 0xFFFF)
64#define _BLOCK_SUBTYPE(block) (block >> 16 & 0xFFFF)
67#define _NORMAL_BLOCK 1
69#define _IGNORE_BLOCK 3
70#define _CLIENT_BLOCK 4
103 #define _CrtDbgBreak() ((void)0)
106 #define _ASSERT_EXPR(expr,expr_str) ((void)0)
110 #define _ASSERT(expr) ((void)0)
114 #define _ASSERTE(expr) ((void)0)
118 #define _RPT0(rptno,msg)
119 #define _RPTN(rptno,msg,...)
121 #define _RPTW0(rptno,msg)
122 #define _RPTWN(rptno,msg,...)
124 #define _RPTF0(rptno,msg)
125 #define _RPTFN(rptno,msg,...)
127 #define _RPTFW0(rptno,msg)
128 #define _RPTFWN(rptno,msg,...)
130 #define _CrtSetReportMode(t,f) ((int)0)
131 #define _CrtSetReportFile(t,f) ((_HFILE)0)
135 #define _CrtDbgBreak() __debugbreak()
138 #define _ASSERT_EXPR(expr,expr_str) \
139 (void)((!!(expr)) || (_CrtDbgReportW(_CRT_ASSERT, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%ls", expr_str) != 1) || (_CrtDbgBreak(), 0))
143 #define _ASSERT(expr) _ASSERT_EXPR((expr), NULL)
147 #define _ASSERTE(expr) _ASSERT_EXPR((expr), _CRT_WIDE(#expr))
150 #define _RPT_BASE(...) \
151 (void)((_CrtDbgReport(__VA_ARGS__) != 1) || (_CrtDbgBreak(), 0))
153 #define _RPT_BASEW(...) \
154 (void)((_CrtDbgReportW(__VA_ARGS__) != 1) || (_CrtDbgBreak(), 0))
157 #define _RPT0(rptno,msg) _RPT_BASE(rptno, NULL, 0, NULL, "%s", msg)
158 #define _RPTN(rptno,msg,...) _RPT_BASE(rptno, NULL, 0, NULL, msg, __VA_ARGS__)
160 #define _RPTW0(rptno,msg) _RPT_BASEW(rptno, NULL, 0, NULL, L"%s", msg)
161 #define _RPTWN(rptno,msg,...) _RPT_BASEW(rptno, NULL, 0, NULL, msg, __VA_ARGS__)
163 #define _RPTF0(rptno,msg) _RPT_BASE(rptno, __FILE__, __LINE__, NULL, "%s", msg)
164 #define _RPTFN(rptno,msg,...) _RPT_BASE(rptno, __FILE__, __LINE__, NULL, msg, __VA_ARGS__)
166 #define _RPTFW0(rptno,msg) _RPT_BASEW(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%s", msg)
167 #define _RPTFWN(rptno,msg,...) _RPT_BASEW(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, __VA_ARGS__)
196#define _RPTFW1 _RPTFWN
197#define _RPTFW2 _RPTFWN
198#define _RPTFW3 _RPTFWN
199#define _RPTFW4 _RPTFWN
200#define _RPTFW5 _RPTFWN
204#define _malloc_dbg(s,t,f,l) malloc(s)
205#define _calloc_dbg(c,s,t,f,l) calloc(c,s)
206#define _realloc_dbg(p,s,t,f,l) realloc(p,s)
207#define _recalloc_dbg(p,c,s,t,f,l) _recalloc(p,c,s)
208#define _expand_dbg(p,s,t,f,l) _expand(p,s)
209#define _free_dbg(p,t) free(p)
210#define _msize_dbg(p,t) _msize(p)
212#define _aligned_malloc_dbg(s,a,f,l) _aligned_malloc(s,a)
213#define _aligned_realloc_dbg(p,s,a,f,l) _aligned_realloc(p,s,a)
214#define _aligned_recalloc_dbg(p,c,s,a,f,l) _aligned_realloc(p,c,s,a)
215#define _aligned_free_dbg(p) _aligned_free(p)
216#define _aligned_offset_malloc_dbg(s,a,o,f,l) _aligned_offset_malloc(s,a,o)
217#define _aligned_offset_realloc_dbg(p,s,a,o,f,l) _aligned_offset_realloc(p,s,a,o)
218#define _aligned_offset_recalloc_dbg(p,c,s,a,o,f,l) _aligned_offset_recalloc(p,c,s,a,o)
220#define _malloca_dbg(s,t,f,l) _malloca(s)
221#define _freea_dbg(p,t) _freea(p)
223#define _strdup_dbg(s,t,f,l) _strdup(s)
224#define _wcsdup_dbg(s,t,f,l) _wcsdup(s)
225#define _mbsdup_dbg(s,t,f,l) _mbsdup(s)
226#define _tempnam_dbg(s1,s2,t,f,l) _tempnam(s1,s2)
227#define _wtempnam_dbg(s1,s2,t,f,l) _wtempnam(s1,s2)
228#define _fullpath_dbg(s1,s2,le,t,f,l) _fullpath(s1,s2,le)
229#define _wfullpath_dbg(s1,s2,le,t,f,l) _wfullpath(s1,s2,le)
230#define _getcwd_dbg(s,le,t,f,l) _getcwd(s,le)
231#define _wgetcwd_dbg(s,le,t,f,l) _wgetcwd(s,le)
232#define _getdcwd_dbg(d,s,le,t,f,l) _getdcwd(d,s,le)
233#define _wgetdcwd_dbg(d,s,le,t,f,l) _wgetdcwd(d,s,le)
234#define _getdcwd_lk_dbg(d,s,le,t,f,l) _getdcwd_nolock(d,s,le)
235#define _wgetdcwd_lk_dbg(d,s,le,t,f,l) _wgetdcwd_nolock(d,s,le)
237#define _CrtSetReportHook(f) ((_CRT_REPORT_HOOK)0)
238#define _CrtGetReportHook() ((_CRT_REPORT_HOOK)0)
239#define _CrtSetReportHook2(t,f) ((int)0)
240#define _CrtSetReportHookW2(t,f) ((int)0)
242#define _CrtSetBreakAlloc(a) ((long)0)
243#define _CrtSetAllocHook(f) ((_CRT_ALLOC_HOOK)0)
244#define _CrtGetAllocHook() ((_CRT_ALLOC_HOOK)0)
245#define _CrtCheckMemory() ((int)1)
246#define _CrtSetDbgFlag(f) ((int)0)
247#define _CrtDoForAllClientObjects(f,c) ((void)0)
248#define _CrtIsValidPointer(p,n,r) ((int)1)
249#define _CrtIsValidHeapPointer(p) ((int)1)
250#define _CrtIsMemoryBlock(p,t,r,f,l) ((int)1)
251#define _CrtReportBlockType(p) ((int)-1)
252#define _CrtSetDumpClient(f) ((_CRT_DUMP_CLIENT)0)
253#define _CrtGetDumpClient() ((_CRT_DUMP_CLIENT)0)
254#define _CrtMemCheckpoint(s) ((void)0)
255#define _CrtMemDifference(s1,s2,s3) ((int)0)
256#define _CrtMemDumpAllObjectsSince(s) ((void)0)
257#define _CrtMemDumpStatistics(s) ((void)0)
258#define _CrtDumpMemoryLeaks() ((int)0)
259#define _CrtSetDebugFillThreshold(t) ((size_t)0)
260#define _CrtSetCheckCount(f) ((int)0)
261#define _CrtGetCheckCount() ((int)0)
269 void __cdecl operator delete[](
void *)
throw();
struct _CrtMemState _CrtMemState
void(__cdecl * _CRT_DUMP_CLIENT)(void *, size_t)
#define _CrtSetReportMode(t, f)
int(__cdecl * _CRT_REPORT_HOOKW)(int, wchar_t *, int *)
int(__cdecl * _CRT_ALLOC_HOOK)(int, void *, size_t, int, long, const unsigned char *, int)
#define _CrtSetReportFile(t, f)
int(__cdecl * _CRT_REPORT_HOOK)(int, char *, int *)
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
EXTERN_C int __cdecl _CrtDbgReportWV(int reportType, const wchar_t *filename, int linenumber, const wchar_t *moduleName, const wchar_t *format, va_list arglist)
EXTERN_C int __cdecl _CrtDbgReportV(int reportType, const char *filename, int linenumber, const char *moduleName, const char *format, va_list arglist)
EXTERN_C int __cdecl _CrtDbgReportW(int reportType, const wchar_t *filename, int linenumber, const wchar_t *moduleName, const wchar_t *format,...)
EXTERN_C int __cdecl _CrtDbgReport(int reportType, const char *filename, int linenumber, const char *moduleName, const char *format,...)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
struct _CrtMemBlockHeader * pBlockHeader
size_t lCounts[_MAX_BLOCKS]
size_t lSizes[_MAX_BLOCKS]