mirror of
https://github.com/zeldaret/ss
synced 2026-08-20 22:23:21 -04:00
20 lines
406 B
C
20 lines
406 B
C
#ifndef RVL_SDK_OS_ALLOC_H
|
|
#define RVL_SDK_OS_ALLOC_H
|
|
#include <rvl/types.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern volatile s32 __OSCurrHeap;
|
|
|
|
void* OSAllocFromHeap(s32 handle, s32 size);
|
|
void OSFreeToHeap(s32 handle, void* p);
|
|
s32 OSSetCurrentHeap(s32 handle);
|
|
void* OSInitAlloc(void* start, void* end, s32 numHeaps);
|
|
s32 OSCreateHeap(void* start, void* end);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|