TombEngine/TR5Main/Game/memory/malloc.cpp
2020-07-11 12:34:23 +02:00

20 lines
No EOL
434 B
C++

#include "framework.h"
#include "malloc.h"
#include "door.h"
#include "PoolAllocator.h"
using namespace std;
char* malloc_buffer;
int malloc_size;
char* malloc_ptr;
int malloc_free;
int malloc_used;
Pool<static_cast<unsigned>(BlockSize::Small)>* gameMemory;
void init_game_malloc() noexcept
{
gameMemory = new Pool<static_cast<size_t>(BlockSize::Small)>(8*1024*1024);
}
void game_free(void* ptr) noexcept
{
gameMemory->free(ptr);
}