Files
fastfetch/src/util/mallocHelper.h
T
李通洲 ad026f6105 LocalIP: backport mac address support
Also change `--*-ip-*` to `--*ip-*` to be consistant to my config branch
2023-06-08 22:22:05 +08:00

12 lines
219 B
C

#include <stdlib.h>
#include <assert.h>
static inline void ffWrapFree(void* pPtr)
{
assert(pPtr);
if(*(void**)pPtr)
free(*(void**)pPtr);
}
#define FF_AUTO_FREE __attribute__((__cleanup__(ffWrapFree)))