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 6f011cf commit 25151aeCopy full SHA for 25151ae
include/bitstream/utility/assert.h
@@ -10,9 +10,9 @@
10
#define BS_BREAKPOINT() throw
11
#endif
12
13
-#define BS_ASSERT(x) if (!(x)) { BS_BREAKPOINT(); return false; }
+#define BS_ASSERT(...) if (!(__VA_ARGS__)) { BS_BREAKPOINT(); return false; }
14
#else // BS_DEBUG_BREAK
15
-#define BS_ASSERT(x) if (!(x)) { return false; }
+#define BS_ASSERT(...) if (!(__VA_ARGS__)) { return false; }
16
17
18
#endif // BS_DEBUG_BREAK
0 commit comments