2021-07-06 20:18:46 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2022-04-15 11:00:55 +02:00
|
|
|
void __assert_fail(const char* expr, const char* file, int line, const char* func)
|
2021-07-06 20:18:46 +02:00
|
|
|
{
|
2022-04-15 11:00:55 +02:00
|
|
|
fprintf(stdout, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line);
|
|
|
|
exit(0);
|
2022-06-19 17:47:00 +02:00
|
|
|
}
|