summaryrefslogtreecommitdiff
path: root/src/code/listalloc.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-01-09 04:59:03 -0800
committerGitHub <noreply@github.com>2024-01-09 07:59:03 -0500
commitcd917b0cb8c20e457d43805ee27d2597daed63e3 (patch)
tree6506a87bb08252072ca10e6993f64f2b475fca09 /src/code/listalloc.c
parente146d7bc2642633f8b09357c115014a3dfca59da (diff)
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
Diffstat (limited to 'src/code/listalloc.c')
-rw-r--r--src/code/listalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/listalloc.c b/src/code/listalloc.c
index d4d24138c..7560c20c6 100644
--- a/src/code/listalloc.c
+++ b/src/code/listalloc.c
@@ -7,7 +7,7 @@ ListAlloc* ListAlloc_Init(ListAlloc* this) {
}
void* ListAlloc_Alloc(ListAlloc* this, u32 size) {
- ListAlloc* ptr = SystemArena_MallocDebug(size + sizeof(ListAlloc), "../listalloc.c", 40);
+ ListAlloc* ptr = SYSTEM_ARENA_MALLOC(size + sizeof(ListAlloc), "../listalloc.c", 40);
ListAlloc* next;
if (ptr == NULL) {
@@ -49,7 +49,7 @@ void ListAlloc_Free(ListAlloc* this, void* data) {
this->next = ptr->prev;
}
- SystemArena_FreeDebug(ptr, "../listalloc.c", 72);
+ SYSTEM_ARENA_FREE(ptr, "../listalloc.c", 72);
}
void ListAlloc_FreeAll(ListAlloc* this) {