TrinityCore
 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
void * dtCustomAlloc(int size, dtAllocHint)
Definition: Memory.h:9
void dtCustomFree(void *ptr)
Definition: Memory.h:14
dtAllocHint
Definition: DetourAlloc.h:24