Updated the ASSERT hooks with an implementation for assertion_failed_msg.

[SVN r78494]
This commit is contained in:
Ronald Garcia 2012-05-17 13:48:51 +00:00
parent bc5df6a074
commit 2bccb07ac8

View File

@ -23,10 +23,18 @@
#include <stdexcept> #include <stdexcept>
namespace boost { namespace boost {
void assertion_failed(char const* expr, char const* function, void assertion_failed(char const* expr, char const* function,
char const* file, long line) { char const* file, long line) {
throw std::runtime_error(expr); 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 } // namespace boost
using namespace boost; using namespace boost;