libc: __assert_func should exit

This commit is contained in:
K. Lange 2021-06-18 19:57:59 +09:00
parent 71bd62d516
commit 0a9dc8d7a2

View File

@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
void __assert_func(const char * file, int line, const char * func, const char * failedexpr) {
fprintf(stderr, "Assertion failed in %s:%d (%s): %s\n", file, line, func, failedexpr);
// void
exit(1);
}