- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
// C:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src\dbghook.c
int __cdecl _CrtDefaultAllocHook(
int nAllocType,
void * pvData,
size_t nSize,
int nBlockUse,
long lRequest,
const unsigned char * szFileName,
int nLine
)
{
return 1; /* allow all allocs/reallocs/frees */
}
// C:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src\dbgheap.c
extern "C" _CRTIMP int __cdecl _CrtIsValidPointer(
const void * pv,
unsigned int nBytes,
int bReadWrite
)
{
return (pv != NULL);
}
вот, в Microsoft Visual Studio 2008 нашёл такие вот перлы...