mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-18 13:54:46 +00:00
Create debug macros for common functions (#1597)
* Create debug macros for common functions * Revert NDEBUG change * MALLOCR -> MALLOC_R * DEBUG -> OOT_DEBUG * Use the same name for debug and non-debug matrix functions * Fix file/line argument order * Revert g[s]DPNoOp[Tag] * Use SystemArena_MallocDebug directly in GameAlloc_MallocDebug * MTXF_TO_MTX -> MATRIX_TO_MTX
This commit is contained in:
parent
e146d7bc26
commit
cd917b0cb8
314 changed files with 1352 additions and 1294 deletions
|
@ -45,7 +45,7 @@ void VisMono_Init(VisMono* this) {
|
|||
}
|
||||
|
||||
void VisMono_Destroy(VisMono* this) {
|
||||
SystemArena_FreeDebug(this->dList, "../z_vismono.c", 137);
|
||||
SYSTEM_ARENA_FREE(this->dList, "../z_vismono.c", 137);
|
||||
}
|
||||
|
||||
void VisMono_DesaturateTLUT(VisMono* this, u16* tlut) {
|
||||
|
@ -187,12 +187,12 @@ void VisMono_DrawOld(VisMono* this) {
|
|||
Gfx* dListEnd;
|
||||
|
||||
if (this->tlut == NULL) {
|
||||
this->tlut = SystemArena_MallocDebug(256 * G_IM_SIZ_16b_BYTES, "../z_vismono.c", 283);
|
||||
this->tlut = SYSTEM_ARENA_MALLOC(256 * G_IM_SIZ_16b_BYTES, "../z_vismono.c", 283);
|
||||
VisMono_DesaturateTLUT(this, this->tlut);
|
||||
}
|
||||
|
||||
if (this->dList == NULL) {
|
||||
this->dList = SystemArena_MallocDebug(VISMONO_DLSIZE * sizeof(Gfx), "../z_vismono.c", 289);
|
||||
this->dList = SYSTEM_ARENA_MALLOC(VISMONO_DLSIZE * sizeof(Gfx), "../z_vismono.c", 289);
|
||||
dListEnd = VisMono_DesaturateDList(this, this->dList);
|
||||
ASSERT(dListEnd <= this->dList + VISMONO_DLSIZE, "glistp_end <= this->mono_dl + DLSIZE", "../z_vismono.c", 292);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue