move mfree to macro-fundamentals.h

This commit is contained in:
Max Resch
2021-10-12 18:31:57 +02:00
parent 76dc17254f
commit 200b1d997d
2 changed files with 7 additions and 6 deletions
-6
View File
@@ -44,12 +44,6 @@ typedef void (*free_func_t)(void *p);
#define malloc0(n) (calloc(1, (n) ?: 1))
#define mfree(memory) \
({ \
free(memory); \
(typeof(memory)) NULL; \
})
#define free_and_replace(a, b) \
({ \
typeof(a)* _a = &(a); \