Project SkyFire Core
SkyFire 5.4.8 server core API documentation
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
12inline void* dtCustomAlloc(int size, dtAllocHint /*hint*/)
13{
14 return (void*)new unsigned char[size];
15}
16
17inline void dtCustomFree(void* ptr)
18{
19 delete[](unsigned char*)ptr;
20}
21
22#endif
void dtCustomFree(void *ptr)
Definition Memory.h:17
void * dtCustomAlloc(int size, dtAllocHint)
Definition Memory.h:12