📄 mdbgheap.cpp
字号:
/***
*dbgheap.c - Debug CRT Heap Functions
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines pure MSIL C++ debug heap routine.
*
*******************************************************************************/
#ifdef _DEBUG
#include <crtdbg.h>
#include <internal.h>
#pragma warning(disable:4439) // C4439: function with a managed parameter must have a __clrcall calling convention
typedef void (__clrcall *_PHEAP_m)(void *, void *);
static _PHEAP_m __pfnHeapfunc = (_PHEAP_m) _encoded_null();
static void __cdecl CrtDoForAllClientObjects_thunk(void *pData, void *pContext)
{
_PHEAP_m pFunc = (_PHEAP_m) DecodePointer(__pfnHeapfunc);
if (pFunc)
{
pFunc(pData, pContext);
}
}
_MRTIMP void __cdecl _CrtDoForAllClientObjects(
_PHEAP_m pfn,
void *pContext)
{
__pfnHeapfunc = (_PHEAP_m) EncodePointer(pfn);
return _CrtDoForAllClientObjects(CrtDoForAllClientObjects_thunk, pContext);
}
#endif /* _DEBUG */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -