Skip to content

Commit

Permalink
+ tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
oktonion committed Jul 11, 2018
1 parent 8bdd26a commit 7bda1f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions stdex/include/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@
#ifndef NDEBUG
#include <iostream>
#define stdex_assert(condition, message) \
do { \
if (! (condition)) { \
std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \
<< " line " << __LINE__ << ": " << message << std::endl; \
std::terminate(); \
} \
} while (false)
do { \
if (! (condition)) { \
std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \
<< " line " << __LINE__ << ": " << message << std::endl; \
std::terminate(); \
} \
} while (false)
#else
#define stdex_assert(condition, message) ((void)0)
#endif
Expand Down

0 comments on commit 7bda1f3

Please sign in to comment.