diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-08-11 17:40:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 17:40:55 -0400 |
commit | 0bc26d9d79a034a50a5b0bb819bfe6bb9802e730 (patch) | |
tree | 93e1efefa7728f05da580aa341537cc9eda47145 /gflib/malloc.h | |
parent | 3a14f4472d111f8c68bc21ef225a194d3b9d4a85 (diff) | |
parent | 3e60a7840653e50845abf10bb02cd1b519dcd80f (diff) |
Merge pull request #1488 from GriffinRichards/doc-frontierpass2
Document frontier pass
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); |