11 void do_assert(const char *message
, int linenum
, const char *filename
, const char *funcname
) noexcept
13 std::string errstr
{filename
};
15 errstr
+= std::to_string(linenum
);
20 /* Calling std::terminate in a catch block hopefully causes the system to
21 * provide info about the caught exception in the error dialog. At least on
22 * Linux, this results in the process printing
24 * terminate called after throwing an instance of 'std::runtime_error'
25 * what(): <message here>
27 * before terminating from a SIGABRT. Hopefully Windows and Mac will do the
28 * appropriate things with the message for an abnormal termination.
31 throw std::runtime_error
{errstr
};