1
0
Fork 0
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:
cadmic 2024-02-01 20:17:17 -08:00 committed by GitHub
parent c701a2181f
commit 3be307bf35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -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;
}

View file

@ -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