TrinityCore
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Memory.h
Go to the documentation of this file.
1
2
3
#ifndef _MEMORY_H
4
#define _MEMORY_H
5
6
#include "
DetourAlloc.h
"
7
8
// memory management
9
inline
void
*
dtCustomAlloc
(
int
size,
dtAllocHint
/*hint*/
)
10
{
11
return
(
void
*)
new
unsigned
char
[size];
12
}
13
14
inline
void
dtCustomFree
(
void
* ptr)
15
{
16
delete
[] (
unsigned
char
*)ptr;
17
}
18
19
#endif
dtCustomAlloc
void * dtCustomAlloc(int size, dtAllocHint)
Definition:
Memory.h:9
dtCustomFree
void dtCustomFree(void *ptr)
Definition:
Memory.h:14
dtAllocHint
dtAllocHint
Definition:
DetourAlloc.h:24
DetourAlloc.h
Generated on Tue Apr 5 2016 20:13:55 for TrinityCore by
1.8.8