diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-11-05 12:05:07 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-11-05 12:05:07 +0100 |
commit | bd56bb073f87eeca6e71b14ab1ec0a11ea1ee3a4 (patch) | |
tree | a9407d270e335b796c8d44a236b76ea6d6c1364a /include/malloc.h | |
parent | af197ccd3bd62fab813154dc4311e65f9992a676 (diff) |
start working on hall of fame
Diffstat (limited to 'include/malloc.h')
-rw-r--r-- | include/malloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h index f3a731797..003ee1f03 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -5,6 +5,12 @@ #define calloc(ct, sz) AllocZeroed((ct) * (sz)) #define free Free +#define FREE_AND_SET_NULL(ptr) \ +{ \ + free(ptr); \ + ptr = NULL; \ +} + extern u8 gHeap[]; void *Alloc(u32 size); void *AllocZeroed(u32 size); |