summaryrefslogtreecommitdiff
path: root/soh/src/code/listalloc.c
diff options
context:
space:
mode:
authorBaoulettes <perlouzerie@hotmail.fr>2022-07-06 01:29:34 +0200
committerGitHub <noreply@github.com>2022-07-05 19:29:34 -0400
commita5df9dddf06adc328dea2877d1f21d1836653b35 (patch)
treec333cbf26b7caf5d940788b38b5a696fe7dda848 /soh/src/code/listalloc.c
parenta9c3c7541e927e31b671e94ceaa43df73df5a8d7 (diff)
Use Macro for __FILE__ & __LINE__ when possible (#559)
* First batch some overlay * Almost all overlay * effect & gamestate * kaleido stuffs * more overlay * more left over from code folder * remaining hardcoded line and file * Open & Close _DISP __FILE__ & __LINE__ clean up * Some if (1) {} remove * LOG_xxxx __FILE__ , __LINE__ cleaned * ASSERT macro __FILE__ __LINE__ * mtx without line/file in functions * " if (1) {} " & "if (0) {}" and tab/white place * LogUtils as macro * GameState_, GameAlloc_, SystemArena_ & ZeldaArena_ * Revert "GameState_, GameAlloc_, SystemArena_ & ZeldaArena_" This reverts commit 0d85caaf7e342648c01a15fe21e93637352dc596. * Like last commit but as macro * Fix matrix not using macros * use function not macro * DebugArena_* functions GameAlloc_MallocDebug BgCheck_PosErrorCheck as macros removed issues with ; in macro file
Diffstat (limited to 'soh/src/code/listalloc.c')
-rw-r--r--soh/src/code/listalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/listalloc.c b/soh/src/code/listalloc.c
index 18d43328d..3dc090f11 100644
--- a/soh/src/code/listalloc.c
+++ b/soh/src/code/listalloc.c
@@ -7,7 +7,7 @@ ListAlloc* ListAlloc_Init(ListAlloc* this) {
}
void* ListAlloc_Alloc(ListAlloc* this, size_t size) {
- ListAlloc* ptr = SystemArena_MallocDebug(size + sizeof(ListAlloc), "../listalloc.c", 40);
+ ListAlloc* ptr = SYSTEM_ARENA_MALLOC_DEBUG(size + sizeof(ListAlloc));
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_DEBUG(ptr);
}
void ListAlloc_FreeAll(ListAlloc* this) {