mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-05 03:07:25 -04:00
19 lines
439 B
C
19 lines
439 B
C
#ifndef _IN_LIB_MEMA_H
|
|
#define _IN_LIB_MEMA_H
|
|
#include <ultra64.h>
|
|
#include "data.h"
|
|
#include "types.h"
|
|
|
|
void memaDefrag(void);
|
|
void memaInit(void);
|
|
void memaHeapInit(void *ptr, u32 size);
|
|
void memaPrint(void);
|
|
void *memaAlloc(u32 size);
|
|
s32 memaGrow(s32 addr, u32 amount);
|
|
void _memaFree(s32 addr, s32 size);
|
|
void memaFree(void *addr, s32 size);
|
|
s32 memaGetLongestFree(void);
|
|
bool memaRealloc(s32 addr, u32 oldsize, u32 newsize);
|
|
|
|
#endif
|