mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
13 lines
269 B
C
13 lines
269 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); }
|
|
};
|