wut  1.0.0-beta9
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 
CoreInitDefaultHeap
void CoreInitDefaultHeap(MEMHeapHandle *outMem1, MEMHeapHandle *outFG, MEMHeapHandle *outMem2)
Default implementation of __preinit_user.
__preinit_user
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...
memheap.h
MEMFreeToDefaultHeap
MEMFreeToDefaultHeapFn MEMFreeToDefaultHeap
MEMAllocFromDefaultHeap
MEMAllocFromDefaultHeapFn MEMAllocFromDefaultHeap
wut.h
MEMAllocFromDefaultHeapExFn
void *(* MEMAllocFromDefaultHeapExFn)(uint32_t size, int32_t alignment)
Definition: memdefaultheap.h:16
MEMFreeToDefaultHeapFn
void(* MEMFreeToDefaultHeapFn)(void *ptr)
Definition: memdefaultheap.h:17
MEMHeapHeader
Definition: memheap.h:51
MEMAllocFromDefaultHeapEx
MEMAllocFromDefaultHeapExFn MEMAllocFromDefaultHeapEx
MEMAllocFromDefaultHeapFn
void *(* MEMAllocFromDefaultHeapFn)(uint32_t size)
Definition: memdefaultheap.h:15