From 2bccb07ac8a1920bb86fffa5367384df126c323b Mon Sep 17 00:00:00 2001 From: Ronald Garcia Date: Thu, 17 May 2012 13:48:51 +0000 Subject: [PATCH] Updated the ASSERT hooks with an implementation for assertion_failed_msg. [SVN r78494] --- test/assert.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/assert.cpp b/test/assert.cpp index da14c54..fe1f36a 100644 --- a/test/assert.cpp +++ b/test/assert.cpp @@ -23,10 +23,18 @@ #include namespace boost { + void assertion_failed(char const* expr, char const* function, char const* file, long line) { throw std::runtime_error(expr); } + + void assertion_failed_msg(char const * expr, char const * msg, + char const * function, + char const * file, long line) { + throw std::runtime_error(msg); + } + } // namespace boost using namespace boost;