summaryrefslogtreecommitdiff
path: root/Runtime/Allocator/LowLevelDefaultAllocator.h
blob: ce9b8522318bbe1e21a08c05e378d30b1e7f84e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_