From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Allocator/LowLevelDefaultAllocator.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Runtime/Allocator/LowLevelDefaultAllocator.h (limited to 'Runtime/Allocator/LowLevelDefaultAllocator.h') diff --git a/Runtime/Allocator/LowLevelDefaultAllocator.h b/Runtime/Allocator/LowLevelDefaultAllocator.h new file mode 100644 index 0000000..ce9b852 --- /dev/null +++ b/Runtime/Allocator/LowLevelDefaultAllocator.h @@ -0,0 +1,25 @@ +#ifndef LOW_LEVEL_DEFAULT_ALLOCATOR_H_ +#define LOW_LEVEL_DEFAULT_ALLOCATOR_H_ + +#if ENABLE_MEMORY_MANAGER + +class LowLevelAllocator +{ +public: + static void* Malloc(size_t size); + static void* Realloc(void* ptr, size_t size); + static void Free(void* ptr); +}; + +#if UNITY_XENON +class LowLevelAllocatorDebugMem +{ +public: + static void* Malloc(size_t size); + static void* Realloc(void* ptr, size_t size); + static void Free(void* ptr); +}; +#endif + +#endif +#endif // LOW_LEVEL_DEFAULT_ALLOCATOR_H_ -- cgit v1.1-26-g67d0