wut  v1.7.0
Wii U Toolchain
memdefaultheap.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "memheap.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef void *(*MEMAllocFromDefaultHeapFn)(uint32_t size);
16 typedef void *(*MEMAllocFromDefaultHeapExFn)(uint32_t size, int32_t alignment);
17 typedef void (*MEMFreeToDefaultHeapFn)(void *ptr);
18 
22 
26 void
28  MEMHeapHandle *outFG,
29  MEMHeapHandle *outMem2);
30 
39 void
41  MEMHeapHandle *outFG,
42  MEMHeapHandle *outMem2);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
MEMAllocFromDefaultHeapExFn MEMAllocFromDefaultHeapEx
void *(* MEMAllocFromDefaultHeapFn)(uint32_t size)
void(* MEMFreeToDefaultHeapFn)(void *ptr)
MEMAllocFromDefaultHeapFn MEMAllocFromDefaultHeap
MEMFreeToDefaultHeapFn MEMFreeToDefaultHeap
void __preinit_user(MEMHeapHandle *outMem1, MEMHeapHandle *outFG, MEMHeapHandle *outMem2)
Allows the user to completely customise the default heaps, this runs after the rpx code section has l...
void *(* MEMAllocFromDefaultHeapExFn)(uint32_t size, int32_t alignment)
void CoreInitDefaultHeap(MEMHeapHandle *outMem1, MEMHeapHandle *outFG, MEMHeapHandle *outMem2)
Default implementation of __preinit_user.