about summary refs log tree commit diff
path: root/src/exit/assert.c
blob: 49b0dc3ec434c68a92ad3c38f087aec74c45e4e3 (plain) (blame)
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();
}