14 lines
308 B
C++
14 lines
308 B
C++
#include <psemek/util/assert.hpp>
|
|
#include <psemek/util/to_string.hpp>
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace psemek::util
|
|
{
|
|
|
|
[[noreturn]] bool assert_handler(char const * expression, char const * file, int line)
|
|
{
|
|
throw std::runtime_error(to_string(file, ":", line, " Assertion failed: ", expression));
|
|
}
|
|
|
|
}
|