summaryrefslogtreecommitdiff
path: root/Runtime/Allocator/BaseAllocator.cpp
blob: 6ce5d0e263ede2ba3e0abefcfe65567189ee459d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "UnityPrefix.h"
#include "BaseAllocator.h"

void* BaseAllocator::Reallocate( void* p, size_t size, int align )
{
//	ErrorString("Not implemented"); 
	return 0;
}

static UInt32 g_IncrementIdentifier = 0x10;
BaseAllocator::BaseAllocator(const char* name) 
: m_TotalRequestedBytes(0)
, m_TotalReservedMemory(0)
, m_BookKeepingMemoryUsage(0)
, m_PeakRequestedBytes(0)
, m_NumAllocations(0)
, m_Name(name)
{
	m_AllocatorIdentifier = g_IncrementIdentifier++;
}