mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-10 19:20:13 +00:00
Match stackcheck.c and code_800FC620.c (#1656)
* Match stackcheck.c * Match code_800FC620.c
This commit is contained in:
parent
c701a2181f
commit
3be307bf35
2 changed files with 6 additions and 0 deletions
|
@ -102,9 +102,11 @@ u32 StackCheck_GetState(StackEntry* entry) {
|
|||
entry->name != NULL ? entry->name : "(null)");
|
||||
PRINTF(VT_RST);
|
||||
|
||||
#if OOT_DEBUG
|
||||
if (ret != STACK_STATUS_OK) {
|
||||
LogUtils_LogHexDump(entry->head, (uintptr_t)entry->tail - (uintptr_t)entry->head);
|
||||
}
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,11 @@ void* func_800FC800(u32 size) {
|
|||
size = 1;
|
||||
}
|
||||
|
||||
#if OOT_DEBUG
|
||||
return __osMallocDebug(&gSystemArena, size, sNew, 0);
|
||||
#else
|
||||
return __osMalloc(&gSystemArena, size);
|
||||
#endif
|
||||
}
|
||||
|
||||
// possibly some kind of delete() function
|
||||
|
|
Loading…
Reference in a new issue