mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:41:49 +01:00
d5effaaf88
Move files to mem*heap.h. Use MEMHeapHandle everywhere to reduce need for unecessary casts. Rename types to match the function names better (e.g. Frame -> Frm).
27 lines
560 B
C
27 lines
560 B
C
#pragma once
|
|
#include <wut.h>
|
|
|
|
/**
|
|
* \defgroup coreinit_memdefaultheap Default Heap
|
|
* \ingroup coreinit
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *(*MEMAllocFromDefaultHeapFn)(uint32_t size);
|
|
typedef void *(*MEMAllocFromDefaultHeapExFn)(uint32_t size, int32_t alignment);
|
|
typedef void (*MEMFreeToDefaultHeapFn)(void *ptr);
|
|
|
|
extern MEMAllocFromDefaultHeapFn MEMAllocFromDefaultHeap;
|
|
extern MEMAllocFromDefaultHeapExFn MEMAllocFromDefaultHeapEx;
|
|
extern MEMFreeToDefaultHeapFn MEMFreeToDefaultHeap;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|