summaryrefslogtreecommitdiff
path: root/gflib/malloc.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-07 16:10:35 -0400
committerGitHub <noreply@github.com>2021-10-07 16:10:35 -0400
commita2655ba9ab82646a54f60abc6078df372179f8d4 (patch)
tree95b074a1a4d77d6cd77e413e1d6e72eb55b595b0 /gflib/malloc.h
parente86d3410a1719fcbf62754bfda93a295aa7e0d57 (diff)
parent001a25e49cd6acdac89a62f4230aef80422e78f2 (diff)
Merge branch 'master' into doc-union
Diffstat (limited to 'gflib/malloc.h')
-rw-r--r--gflib/malloc.h2
1 files changed, 2 insertions, 0 deletions
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);