Replace (void)(...); idiom with UNUSED macro

This commit is contained in:
MerryMage
2016-12-15 21:32:20 +00:00
parent 276873bf70
commit b178ab3bec
5 changed files with 36 additions and 34 deletions

View File

@@ -27,3 +27,5 @@ using f32 = float;
using f64 = double;
static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide");
static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide");
#define UNUSED(...) (void)([__VA_ARGS__](){})