Core/Utils: Added helper function to make creating unique_ptr with custom deleters more convenient

# Conflicts:
#	src/server/game/World/World.cpp
This commit is contained in:
Shauren authored and Ovahlord committed 2022-06-19 21:42:45 +02:00
1 parent fc0dc939ba
commit 8733f6fafa
3 files changed
+53 -5

No files matched your search

@@ -1,7 +1,7 @@
#ifndef _MEMORY_H
#define _MEMORY_H
#ifndef TRINITY_DETOUR_MEMORY_FUNCTIONS_H
#define TRINITY_DETOUR_MEMORY_FUNCTIONS_H
#include "DetourAlloc.h"
@@ -16,4 +16,4 @@ inline void dtCustomFree(void* ptr)
delete [] (unsigned char*)ptr;
}
#endif
#endif // TRINITY_DETOUR_MEMORY_FUNCTIONS_H