Cleanup game_memory.h

See #42
This commit is contained in:
Alexander Batalov 2022-06-18 16:47:23 +03:00
parent 92a20f5a3c
commit 4515c6cd51
2 changed files with 8 additions and 8 deletions

View File

@ -3,8 +3,13 @@
#include "db.h"
#include "dictionary.h"
#include "memory.h"
#include "memory_defs.h"
#include "memory_manager.h"
static void* gameMemoryMalloc(size_t size);
static void* gameMemoryRealloc(void* ptr, size_t newSize);
static void gameMemoryFree(void* ptr);
// 0x44B250
int gameMemoryInit()
{
@ -16,19 +21,19 @@ int gameMemoryInit()
}
// 0x44B294
void* gameMemoryMalloc(size_t size)
static void* gameMemoryMalloc(size_t size)
{
return internal_malloc(size);
}
// 0x44B29C
void* gameMemoryRealloc(void* ptr, size_t newSize)
static void* gameMemoryRealloc(void* ptr, size_t newSize)
{
return internal_realloc(ptr, newSize);
}
// 0x44B2A4
void gameMemoryFree(void* ptr)
static void gameMemoryFree(void* ptr)
{
internal_free(ptr);
}

View File

@ -1,11 +1,6 @@
#ifndef GAME_MEMORY_H
#define GAME_MEMORY_H
#include "memory_defs.h"
int gameMemoryInit();
void* gameMemoryMalloc(size_t size);
void* gameMemoryRealloc(void* ptr, size_t newSize);
void gameMemoryFree(void* ptr);
#endif /* GAME_MEMORY_H */