2018-03-01 17:15:49 +03:00
|
|
|
#include <stdio.h>
|
2021-06-18 13:57:59 +03:00
|
|
|
#include <stdlib.h>
|
2018-02-25 08:13:54 +03:00
|
|
|
|
|
|
|
void __assert_func(const char * file, int line, const char * func, const char * failedexpr) {
|
2018-03-01 17:15:49 +03:00
|
|
|
fprintf(stderr, "Assertion failed in %s:%d (%s): %s\n", file, line, func, failedexpr);
|
2021-06-18 13:57:59 +03:00
|
|
|
exit(1);
|
2018-02-25 08:13:54 +03:00
|
|
|
}
|