mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
fc475a9756
* sysheap * Gorons * Update goron comment * functions.h * Update src/boot_O2/system_heap.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * add header * Fix header guards * Update data * Add malloc and free to header --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
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
|