summaryrefslogtreecommitdiff
path: root/src/ulib/assert.c
blob: ca2da8433f72cc58862712a416e015b0ff378c1e (plain)
1
2
3
4
5
6
7
8
#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);
    abort();
}