musl/src/exit/assert.c

10 lines
233 B
C
Raw Normal View History

2011-02-12 05:22:29 +00:00
#include <stdio.h>
#include <stdlib.h>
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();
}