ohmu
·
2026-10-15
1#pragma once
2
3#ifndef NDEBUG
4 #include "fastfetch.h"
5 #include "common/time.h"
6
7[[gnu::nonnull(1, 3), gnu::format(printf, 3, 4)]]
8void ffDebugPrint(const char* file, int line, const char* format, ...);
9
10 #define FF_DEBUG(format, ...) ffDebugPrint(__FILE__, __LINE__, format, ##__VA_ARGS__)
11
12 #if _WIN32
13const char* ffDebugWin32Error(DWORD errorCode);
14const char* ffDebugNtStatus(NTSTATUS status);
15const char* ffDebugConfigRet(unsigned long /*CONFIGRET*/ ret);
16const char* ffDebugHResult(HRESULT hr);
17 #endif
18
19#else
20
21 #define FF_DEBUG(format, ...) ((void) 0)
22#endif