mirror of
https://github.com/zeldaret/ss
synced 2026-09-03 09:59:55 -04:00
eggExpHeap matching
This commit is contained in:
@@ -53,7 +53,9 @@ struct MEMiHeapHead *MEMDestroyExpHeap(struct MEMiHeapHead *heap);
|
||||
void *MEMAllocFromExpHeapEx(struct MEMiHeapHead *heap, u32 size, s32 align);
|
||||
u32 MEMResizeForMBlockExpHeap(struct MEMiHeapHead *heap, void *memBlock, u32 size);
|
||||
void MEMFreeToExpHeap(struct MEMiHeapHead *heap, void *memBlock);
|
||||
u32 MEMGetAllocatableSizeForExpHeap(struct MEMiHeapHead *heap);
|
||||
u32 MEMGetAllocatableSizeForExpHeapEx(struct MEMiHeapHead *heap, s32 align);
|
||||
void MEMSetGroupIdForExpHeap(MEMiHeapHead *mHeapHandle, u16 groupId);
|
||||
u32 MEMAdjustExpHeap(struct MEMiHeapHead *heap);
|
||||
|
||||
static inline struct MEMiHeapHead *MEMCreateExpHeap(void *start, u32 size) {
|
||||
@@ -63,10 +65,11 @@ static inline struct MEMiHeapHead *MEMCreateExpHeap(void *start, u32 size) {
|
||||
static inline void *MEMAllocFromExpHeap(struct MEMiHeapHead *heap, u32 size) {
|
||||
return MEMAllocFromExpHeapEx(heap, size, 4);
|
||||
}
|
||||
|
||||
// This doesn't appear to be inline in SS yet
|
||||
/*
|
||||
static inline u32 MEMGetAllocatableSizeForExpHeap(struct MEMiHeapHead *heap) {
|
||||
return MEMGetAllocatableSizeForExpHeapEx(heap, 4);
|
||||
}
|
||||
}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user