mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-23 14:09:43 +00:00
21 lines
602 B
C
21 lines
602 B
C
#ifndef SYSTEM_MALLOC_H
|
|
#define SYSTEM_MALLOC_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
#include "os_malloc.h"
|
|
|
|
void* SystemArena_Malloc(size_t size);
|
|
void* SystemArena_MallocR(size_t size);
|
|
void* SystemArena_Realloc(void* oldPtr, size_t newSize);
|
|
void SystemArena_Free(void* ptr);
|
|
void* SystemArena_Calloc(u32 elements, size_t size);
|
|
void SystemArena_GetSizes(size_t* maxFreeBlock, size_t* bytesFree, size_t* bytesAllocated);
|
|
u32 SystemArena_CheckArena(void);
|
|
void SystemArena_Init(void* start, size_t size);
|
|
void SystemArena_Cleanup(void);
|
|
u8 SystemArena_IsInitialized(void);
|
|
|
|
extern Arena gSystemArena;
|
|
|
|
#endif
|