Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
Memory.h
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
#ifndef _MEMORY_H
7
#define _MEMORY_H
8
9
#include "DetourAlloc.h"
10
11
// memory management
12
inline
void
*
dtCustomAlloc
(
int
size, dtAllocHint
/*hint*/
)
13
{
14
return
(
void
*)
new
unsigned
char
[size];
15
}
16
17
inline
void
dtCustomFree
(
void
* ptr)
18
{
19
delete
[](
unsigned
char
*)ptr;
20
}
21
22
#endif
dtCustomFree
void dtCustomFree(void *ptr)
Definition
Memory.h:17
dtCustomAlloc
void * dtCustomAlloc(int size, dtAllocHint)
Definition
Memory.h:12
src
server
shared
Memory.h
Generated on
for Project SkyFire Core by
1.17.0