Add UNUSED macro, enable clangd unused parameter warnings

This commit is contained in:
LagoLunatic
2025-12-29 13:39:55 -05:00
parent ab23a2693d
commit a7421f5f66
12 changed files with 20 additions and 1 deletions
+4
View File
@@ -13,6 +13,10 @@
#define IS_ALIGNED(X, N) (((X) & ((N)-1)) == 0)
#define IS_NOT_ALIGNED(X, N) (((X) & ((N)-1)) != 0)
// Silence unused parameter warnings.
// TP debug suggests the original devs used something like this.
#define UNUSED(x) ((void)(x))
#define JUT_EXPECT(...)
#define ASSERT(...)
#define LOGF(FMT, ...)