mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 09:47:58 +03:00
20 lines
No EOL
370 B
C++
20 lines
No EOL
370 B
C++
#include "framework.h"
|
|
#include "malloc.h"
|
|
#include "door.h"
|
|
#include "PoolAllocator.h"
|
|
using namespace T5M::Memory;
|
|
char* malloc_buffer;
|
|
int malloc_size;
|
|
char* malloc_ptr;
|
|
int malloc_free;
|
|
int malloc_used;
|
|
TGPool* gameMemory;
|
|
void init_game_malloc() noexcept
|
|
{
|
|
gameMemory = new TGPool(8 * 1024 * 1024);
|
|
}
|
|
|
|
void game_free(void* ptr) noexcept
|
|
{
|
|
gameMemory->free(ptr);
|
|
} |