diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-08-11 19:01:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 19:01:47 -0400 |
commit | 80348e7188f64036171d57512defdd7321aec00b (patch) | |
tree | 517139fce4979f7dda50b1216968caa63fc5d0e6 /gflib/malloc.h | |
parent | 28a8fe191af71a71d45afb93480dc59f98e790cf (diff) | |
parent | cc516274650bfc21437003c16bb793a43d190a41 (diff) |
Merge branch 'master' into doc-itemmenu2
Diffstat (limited to 'gflib/malloc.h')
-rw-r--r-- | gflib/malloc.h | 2 |
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); |