mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-22 06:20:02 -04:00
Add UNUSED macro, enable clangd unused parameter warnings
This commit is contained in:
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user