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