Files
Aerofoil/GpCommon/IGpAllocator.h
2021-04-28 01:46:07 -04:00

13 lines
279 B
C

#pragma once
#include <stdint.h>
#include <stddef.h>
struct IGpAllocator
{
virtual void *Realloc(void *buf, size_t newSize) = 0;
inline void *Alloc(size_t size) { return this->Realloc(nullptr, size); }
inline void Release(void *ptr) { this->Realloc(ptr, 0); }
};