Accept "<<" in the message of the ASSERT macro

This commit is contained in:
Olivier Teulière 2012-05-20 22:10:57 +02:00
parent 3c29804148
commit 89892c622c

View file

@ -39,7 +39,9 @@ using std::endl;
{ \ { \
if (!(cond)) \ if (!(cond)) \
{ \ { \
cerr << "ASSERTION FAILED: " << (msg) << " (at " \ cerr << "ASSERTION FAILED: "; \
cerr << msg; \
cerr << " (at " \
<< __FILE__ << "#" << __LINE__ << ")\n"; \ << __FILE__ << "#" << __LINE__ << ")\n"; \
abort(); \ abort(); \
} \ } \