From cd917b0cb8c20e457d43805ee27d2597daed63e3 Mon Sep 17 00:00:00 2001 From: cadmic Date: Tue, 9 Jan 2024 04:59:03 -0800 Subject: 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 --- src/code/z_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code/z_debug.c') diff --git a/src/code/z_debug.c b/src/code/z_debug.c index bc46c5a72..9581ec854 100644 --- a/src/code/z_debug.c +++ b/src/code/z_debug.c @@ -97,7 +97,7 @@ char sRegGroupChars[REG_GROUPS] = { void Regs_Init(void) { s32 i; - gRegEditor = SystemArena_MallocDebug(sizeof(RegEditor), "../z_debug.c", 260); + gRegEditor = SYSTEM_ARENA_MALLOC(sizeof(RegEditor), "../z_debug.c", 260); gRegEditor->regPage = 0; gRegEditor->regGroup = 0; gRegEditor->regCur = 0; -- cgit v1.2.3