We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af97b83 commit df0779bCopy full SHA for df0779b
1 file changed
middleware/include/bitstream.h
@@ -9,8 +9,10 @@
9
#include <math.h>
10
11
/* Throws a compile-time error if the assert fails */
12
-#define STATIC_ASSERT(condition, message) \
13
- typedef char static_assertion_##__LINE__[(condition) ? 1 : -1]
+#define STATIC_ASSERT(condition, message) \
+ do { \
14
+ typedef char static_assertion_##__LINE__[(condition) ? 1 : -1]; \
15
+ } while (0)
16
17
typedef struct {
18
uint8_t *data; // The bitstream data, stored as bytes
0 commit comments