TombEngine/TR5Main/Game/memory/malloc.cpp

20 lines
370 B
C++
Raw Normal View History

#include "framework.h"
#include "malloc.h"
#include "door.h"
#include "PoolAllocator.h"
2020-07-11 17:36:05 +02:00
using namespace T5M::Memory;
char* malloc_buffer;
int malloc_size;
char* malloc_ptr;
int malloc_free;
int malloc_used;
2020-07-11 17:36:05 +02:00
TGPool* gameMemory;
void init_game_malloc() noexcept
{
2020-07-11 17:36:05 +02:00
gameMemory = new TGPool(8 * 1024 * 1024);
}
void game_free(void* ptr) noexcept
{
gameMemory->free(ptr);
}