Skip to content

Commit cd1f860

Browse files
authored
Merge pull request #33 from bonachea/fix-warnings
Fix warnings on multi-include
2 parents 71c6073 + 8ae0c3e commit cd1f860

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

include/assert_macros.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
19
#ifdef DEBUG
210
# define call_assert(assertion) call assert(assertion, "No description provided (see file " // __FILE__ // ", line " // string(__LINE__) // ")")
311
# define call_assert_describe(assertion, description) call assert(assertion, description // " in file " // __FILE__ // ", line " // string(__LINE__) // ": " )

0 commit comments

Comments
 (0)