mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
EOL fix
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
#include "IGpAllocator.h"
|
#include "IGpAllocator.h"
|
||||||
|
|
||||||
class GpAllocator_C final : public IGpAllocator
|
class GpAllocator_C final : public IGpAllocator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void *Realloc(void *buf, size_t newSize) override;
|
void *Realloc(void *buf, size_t newSize) override;
|
||||||
|
|
||||||
static GpAllocator_C *GetInstance();
|
static GpAllocator_C *GetInstance();
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
struct IGpAllocator
|
struct IGpAllocator
|
||||||
{
|
{
|
||||||
virtual void *Realloc(void *buf, size_t newSize) = 0;
|
virtual void *Realloc(void *buf, size_t newSize) = 0;
|
||||||
|
|
||||||
inline void *Alloc(size_t size) { return this->Realloc(nullptr, size); }
|
inline void *Alloc(size_t size) { return this->Realloc(nullptr, size); }
|
||||||
inline void Release(void *ptr) { this->Realloc(ptr, 0); }
|
inline void Release(void *ptr) { this->Realloc(ptr, 0); }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user