Files
fastfetch/src/util/unused.h
T

15 lines
344 B
C
Raw Normal View History

2023-07-25 16:01:38 +08:00
#pragma once
#ifndef FASTFETCH_INCLUDED_UNUSED
#define FASTFETCH_INCLUDED_UNUSED
static inline void ffUnused(int dummy, ...) { (void) dummy; }
#define FF_UNUSED(...) ffUnused(0, __VA_ARGS__);
2023-09-26 20:09:41 +08:00
#if defined(__GNUC__) || defined(__clang__)
#define FF_MAYBE_UNUSED __attribute__ ((__unused__))
#else
#define FF_MAYBE_UNUSED
#endif
2023-07-25 16:01:38 +08:00
#endif