mirror of
https://github.com/zeldaret/af.git
synced 2026-09-26 05:31:51 -04:00
56b4e612cc
* match * bss * format * fix
18 lines
474 B
C
18 lines
474 B
C
#ifndef M_MALLOC_H
|
|
#define M_MALLOC_H
|
|
|
|
#include "ultra64.h"
|
|
|
|
void* zelda_malloc(size_t size);
|
|
void* zelda_malloc_r(size_t size);
|
|
void* zelda_realloc(void* ptr, size_t size);
|
|
void zelda_free(void* ptr);
|
|
void* zelda_calloc(s32 num, size_t size);
|
|
void zelda_GetFreeArena(size_t* outMaxFree, size_t* outFree, size_t* outAlloc);
|
|
s32 zelda_CheckArena(void);
|
|
void zelda_InitArena(void* heap, size_t size);
|
|
void zelda_CleanupArena(void);
|
|
s32 zelda_MallocIsInitalized(void);
|
|
|
|
#endif
|