We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71c6073 + 8ae0c3e commit cd1f860Copy full SHA for cd1f860
1 file changed
include/assert_macros.h
@@ -1,3 +1,11 @@
1
+! assert_macros.h: provides preprocessor-based assertion macros
2
+! that are guaranteed to compile away statically when disabled.
3
+
4
+! Enable repeated includes to toggle assertions based on current settings:
5
+#undef call_assert
6
+#undef call_assert_describe
7
+#undef call_assert_diagnose
8
9
#ifdef DEBUG
10
# define call_assert(assertion) call assert(assertion, "No description provided (see file " // __FILE__ // ", line " // string(__LINE__) // ")")
11
# define call_assert_describe(assertion, description) call assert(assertion, description // " in file " // __FILE__ // ", line " // string(__LINE__) // ": " )
0 commit comments