5 #include "cStandardMemoryProvider.h"
6 #include "cMemoryTracker.h"
22 void* ptr = malloc(size);
23 #if CAUDIO_USE_MEMORYTRACKER == 1
24 cMemoryTracker::Instance()->AddAllocation(ptr, size, filename, line,
function);
33 #if CAUDIO_USE_MEMORYTRACKER == 1
34 cMemoryTracker::Instance()->RemoveAllocation(pointer);
42 return std::numeric_limits<size_t>::max();
virtual void Free(void *pointer)
Frees memory previously allocated.
virtual size_t getMaxAllocationSize()
Returns the largest possible single allocation that can be made.
virtual void * Allocate(size_t size, const char *filename, int line, const char *function)
Allocates memory and returns a pointer to it.