1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-25 22:09:34 +00:00
ooot/include/def/debug_malloc.h
2022-02-14 10:56:16 -05:00

19 lines
829 B
C

#pragma once
void* DebugArena_Calloc(u32 num, u32 size);
void DebugArena_Check(void);
void DebugArena_CheckPointer(void* ptr, u32 size, const char* name, const char* action);
void DebugArena_Cleanup(void);
void DebugArena_Display(void);
void DebugArena_Free(void* ptr);
void DebugArena_FreeDebug(void* ptr, const char* file, s32 line);
void DebugArena_GetSizes(u32* outMaxFree, u32* outFree, u32* outAlloc);
void DebugArena_Init(void* start, u32 size);
u8 DebugArena_IsInitalized(void);
void* DebugArena_Malloc(u32 size);
void* DebugArena_MallocDebug(u32 size, const char* file, s32 line);
void* DebugArena_MallocR(u32 size);
void* DebugArena_MallocRDebug(u32 size, const char* file, s32 line);
void* DebugArena_Realloc(void* ptr, u32 newSize);
void* DebugArena_ReallocDebug(void* ptr, u32 newSize, const char* file, s32 line);