Add braces inside #define macro bodies

This commit is contained in:
Rangi42
2025-01-27 19:59:06 -05:00
committed by Rangi
parent 4e44958d26
commit 79401cce8b
5 changed files with 18 additions and 9 deletions

View File

@@ -27,8 +27,9 @@ static inline void unreachable_() {
// `[[gnu::assume()]]` for GCC or compatible also has insufficient support (GCC 13+ only)
#define assume(x) \
do { \
if (!(x)) \
if (!(x)) { \
unreachable_(); \
} \
} while (0)
#endif
#else