mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:24:58 +02:00
IO: only suppress IO in release mode
It can be annoy when printing debug messages
This commit is contained in:
+5
-1
@@ -96,7 +96,11 @@ static inline void ffUnsuppressIO(bool* suppressed)
|
||||
*suppressed = false;
|
||||
}
|
||||
|
||||
#define FF_SUPPRESS_IO() bool __attribute__((__cleanup__(ffUnsuppressIO), __unused__)) io_suppressed__ = ffSuppressIO(true)
|
||||
#ifdef NDEBUG
|
||||
#define FF_SUPPRESS_IO() bool __attribute__((__cleanup__(ffUnsuppressIO), __unused__)) io_suppressed__ = ffSuppressIO(true)
|
||||
#else
|
||||
#define FF_SUPPRESS_IO()
|
||||
#endif
|
||||
|
||||
void ffListFilesRecursively(const char* path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user