mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
ad026f6105
Also change `--*-ip-*` to `--*ip-*` to be consistant to my config branch
12 lines
219 B
C
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)))
|