From 602855ea99d8015ef5b7709f6fb1e9fd167239e2 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Tue, 19 Jan 2021 04:03:51 -0500 Subject: Document frontier pass --- gflib/malloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gflib/malloc.h') diff --git a/gflib/malloc.h b/gflib/malloc.h index f2dcf6d46..8d49e0be7 100644 --- a/gflib/malloc.h +++ b/gflib/malloc.h @@ -12,6 +12,8 @@ ptr = NULL; \ } +#define TRY_FREE_AND_SET_NULL(ptr) if (ptr != NULL) FREE_AND_SET_NULL(ptr) + extern u8 gHeap[]; void *Alloc(u32 size); -- cgit v1.2.3