Moved some parts to a static lib so both the executable and the tests can link to it.
Written additional tests.
This commit is contained in:
parent
0a809a7288
commit
d0ea9dfa0c
39 changed files with 1767 additions and 493 deletions
20
core/my_boost_assert_handler.cpp
Normal file
20
core/my_boost_assert_handler.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
void assertion_failed(char const * expr, char const * function, char const * file, long line)
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << "Assertion failure int " << function << " " << file << ":" << line;
|
||||
throw std::runtime_error(out.str());
|
||||
}
|
||||
|
||||
void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line)
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << "Assertion failure int " << function << " " << file << ":" << line << "\n"<< msg;
|
||||
throw std::runtime_error(out.str());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue