libc: __assert_func should exit
This commit is contained in:
parent
71bd62d516
commit
0a9dc8d7a2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user