mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-06 07:56:32 +00:00
Decouple Debug Features From gc-eu-mq-dbg (#2296)
* rename OOT_DEBUG to DEBUG_FEATURES * makefile changes * add DEBUG_ASSETS * fix DEBUG_FEATURES usages * format * fix errors * review * fix problem and review2 * review * add DEBUG_FEATURES to DEBUG_ASSETS check * review * whoops * format
This commit is contained in:
parent
cf4dc98cc9
commit
17edb82c0d
168 changed files with 652 additions and 606 deletions
|
@ -25,7 +25,7 @@ typedef struct ArenaNode {
|
|||
/* 0x04 */ u32 size;
|
||||
/* 0x08 */ struct ArenaNode* next;
|
||||
/* 0x0C */ struct ArenaNode* prev;
|
||||
#if PLATFORM_N64 || OOT_DEBUG
|
||||
#if PLATFORM_N64 || DEBUG_FEATURES
|
||||
/* 0x10 */ const char* filename;
|
||||
/* 0x14 */ int line;
|
||||
/* 0x18 */ OSId threadId;
|
||||
|
@ -57,15 +57,19 @@ void* __osRealloc(Arena* arena, void* ptr, u32 newSize);
|
|||
void ArenaImpl_GetSizes(Arena* arena, u32* outMaxFree, u32* outFree, u32* outAlloc);
|
||||
s32 __osCheckArena(Arena* arena);
|
||||
|
||||
#if OOT_DEBUG
|
||||
#if PLATFORM_N64 || DEBUG_FEATURES
|
||||
void* __osMallocDebug(Arena* arena, u32 size, const char* file, int line);
|
||||
void* __osMallocRDebug(Arena* arena, u32 size, const char* file, int line);
|
||||
void __osFreeDebug(Arena* arena, void* ptr, const char* file, int line);
|
||||
void* __osReallocDebug(Arena* arena, void* ptr, u32 newSize, const char* file, int line);
|
||||
void __osDisplayArena(Arena* arena);
|
||||
#endif
|
||||
|
||||
#if PLATFORM_GC && DEBUG_FEATURES
|
||||
void __osDisplayArena(Arena* arena);
|
||||
extern u32 __osMalloc_FreeBlockTest_Enable;
|
||||
#else
|
||||
#endif
|
||||
|
||||
#if PLATFORM_N64
|
||||
extern u32 gTotalAllocFailures;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue