summaryrefslogtreecommitdiff
path: root/src/exit/assert.c
blob: 49b0dc3ec434c68a92ad3c38f087aec74c45e4e3 (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>
#include <stdlib.h>

_Noreturn void __assert_fail(const char *expr, const char *file, int line, const char *func)
{
	fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line);
	fflush(NULL);
	abort();
}