about summary refs log tree commit diff
path: root/src/exit/assert.c
blob: 94edd8272792e79fb0e2079142342c518e22fbfe (plain) (blame)
1
2
3
4
5
6
7
8
#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);
	abort();
}