ReactOS 0.4.16-dev-853-g88d9285
debug_heap_hook.cpp
Go to the documentation of this file.
1//
2// debug_heap_hook.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Definition of the default debug heap allocation hook. This is in its own
7// object so that it may be replaced by a client hook at link time when the
8// static CRT is used.
9//
10#ifndef _DEBUG
11 #error This file is supported only in debug builds
12#endif
13
14#include <corecrt_internal.h>
15
16
17
18// A default heap allocation hook that permits all allocations
20 int const allocation_type,
21 void* const data,
22 size_t const size,
23 int const block_use,
24 long const request,
25 unsigned char const* const file_name,
26 int const line_number
27 )
28{
29 UNREFERENCED_PARAMETER(allocation_type);
36
37 return 1; // Allow all heap operations
38}
39
#define __cdecl
Definition: accygwin.h:79
int(__cdecl * _CRT_ALLOC_HOOK)(int, void *, size_t, int, long, const unsigned char *, int)
Definition: crtdbg.h:46
int const char const *const int const line_number
Definition: debug_heap.cpp:499
int __cdecl _CrtDefaultAllocHook(int const allocation_type, void *const data, size_t const size, int const block_use, long const request, unsigned char const *const file_name, int const line_number)
_CRT_ALLOC_HOOK _pfnAllocHook
_Out_opt_ size_t *const Character const *const int const block_use
Definition: getenv.cpp:258
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLsizeiptr size
Definition: glext.h:5919
static LPCWSTR file_name
Definition: protocol.c:147
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
Definition: tftpd.h:86