18 if(Config::EnableFullAssert)
19 abort(
"assertion failed at %s:%d: %s", file ? file :
"?", line, expr ? expr :
"?");
21 abort(
"assertion failed at %s:%d", file ? file :
"?", line);
27void __assert_rtn(
const char* func,
const char* file,
unsigned int line,
const char* exp)
32#elif defined(__NEWLIB__)
33void __assert_func(
const char* file,
int line,
const char* func,
const char* failedexpr)
40 const char* __assertion,
const char* __file,
unsigned int __line,
41 const char* __function)
noexcept
48 int __errnum,
const char* __file,
unsigned int __line,
const char* __function)
noexcept
void __assert_perror_fail(int __errnum, const char *__file, unsigned int __line, const char *__function) noexcept
void __assert_fail(const char *__assertion, const char *__file, unsigned int __line, const char *__function) noexcept
void abort(char const *fmt,...) noexcept
Aborts the process after printing the given printf() formatted message.
string err(int e)
Return a string like strerror() does, but as a zth::string.
void assert_handler(char const *file, int line, char const *expr)