From 89892c622c42aa69754f9dd4e0ce12f7803915b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 20 May 2012 22:10:57 +0200 Subject: [PATCH] Accept "<<" in the message of the ASSERT macro --- dic/debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dic/debug.h b/dic/debug.h index 1359b94..fb2870f 100644 --- a/dic/debug.h +++ b/dic/debug.h @@ -39,7 +39,9 @@ using std::endl; { \ if (!(cond)) \ { \ - cerr << "ASSERTION FAILED: " << (msg) << " (at " \ + cerr << "ASSERTION FAILED: "; \ + cerr << msg; \ + cerr << " (at " \ << __FILE__ << "#" << __LINE__ << ")\n"; \ abort(); \ } \