Files
Prakxo e1fcb33cef The NPC PR 3/3 OK (#119)
* npc werk

* atleast it builds

* m_npc OK

* forgor format

* review

* format

* fix warns?
2023-11-23 10:03:30 -07:00

22 lines
480 B
C

#ifndef LIBC64_MALLOC_H
#define LIBC64_MALLOC_H
#include "ultra64.h"
struct Arena;
void* malloc(size_t size);
void* malloc_r(size_t size);
void* realloc(void* ptr, size_t size);
void free(void* ptr);
void* calloc(size_t num, size_t size);
void GetFreeArena(size_t* outMaxFree, size_t* outFree, size_t* outAlloc);
s32 CheckArena(void);
void MallocInit(void* heap, size_t size);
void MallocCleanup(void);
s32 MallocIsInitialized(void);
extern struct Arena malloc_arena;
#endif