mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 22:41:14 +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
|
@ -548,7 +548,7 @@ void EnBox_PostLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot,
|
|||
s32 pad;
|
||||
|
||||
if (limbIndex == 1) {
|
||||
gSPMatrix((*gfx)++, Matrix_NewMtx(play->state.gfxCtx, "../z_en_box.c", 1492),
|
||||
gSPMatrix((*gfx)++, MATRIX_NEW(play->state.gfxCtx, "../z_en_box.c", 1492),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
if (this->type != ENBOX_TYPE_DECORATED_BIG) {
|
||||
gSPDisplayList((*gfx)++, gTreasureChestChestFrontDL);
|
||||
|
@ -556,7 +556,7 @@ void EnBox_PostLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot,
|
|||
gSPDisplayList((*gfx)++, gTreasureChestBossKeyChestFrontDL);
|
||||
}
|
||||
} else if (limbIndex == 3) {
|
||||
gSPMatrix((*gfx)++, Matrix_NewMtx(play->state.gfxCtx, "../z_en_box.c", 1502),
|
||||
gSPMatrix((*gfx)++, MATRIX_NEW(play->state.gfxCtx, "../z_en_box.c", 1502),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
if (this->type != ENBOX_TYPE_DECORATED_BIG) {
|
||||
gSPDisplayList((*gfx)++, gTreasureChestChestSideAndLidDL);
|
||||
|
@ -570,7 +570,7 @@ Gfx* EnBox_EmptyDList(GraphicsContext* gfxCtx) {
|
|||
Gfx* dListHead;
|
||||
Gfx* dList;
|
||||
|
||||
dList = Graph_Alloc(gfxCtx, sizeof(Gfx));
|
||||
dList = GRAPH_ALLOC(gfxCtx, sizeof(Gfx));
|
||||
ASSERT(dList != NULL, "gfxp != NULL", "../z_en_box.c", 1528);
|
||||
|
||||
dListHead = dList;
|
||||
|
@ -584,7 +584,7 @@ Gfx* func_809CA4A0(GraphicsContext* gfxCtx) {
|
|||
Gfx* dList;
|
||||
Gfx* dListHead;
|
||||
|
||||
dListHead = Graph_Alloc(gfxCtx, 2 * sizeof(Gfx));
|
||||
dListHead = GRAPH_ALLOC(gfxCtx, 2 * sizeof(Gfx));
|
||||
ASSERT(dListHead != NULL, "gfxp != NULL", "../z_en_box.c", 1546);
|
||||
|
||||
dList = dListHead;
|
||||
|
@ -602,7 +602,7 @@ Gfx* func_809CA518(GraphicsContext* gfxCtx) {
|
|||
Gfx* dList;
|
||||
Gfx* dListHead;
|
||||
|
||||
dListHead = Graph_Alloc(gfxCtx, 2 * sizeof(Gfx));
|
||||
dListHead = GRAPH_ALLOC(gfxCtx, 2 * sizeof(Gfx));
|
||||
ASSERT(dListHead != NULL, "gfxp != NULL", "../z_en_box.c", 1564);
|
||||
|
||||
dList = dListHead;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue