diff options
Diffstat (limited to 'Runtime/Allocator/LowLevelDefaultAllocator.h')
-rw-r--r-- | Runtime/Allocator/LowLevelDefaultAllocator.h | 25 |
1 files changed, 25 insertions, 0 deletions
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_ |