summaryrefslogtreecommitdiff
path: root/src/assert/__assert.c
blob: 8e11b7561112e3473aa01ba71ae2a8d67f6d8f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#if 0

#include <stdio.h>
#include <stdlib.h>

void __assert(const char *expr, const char *file, int line, const char *func)
{
        if (func) {
                fprintf(stderr, "Assertion failed: %s (%s:%d:%s())\n", expr,
                        file, line, func);
        } else {
                fprintf(stderr, "Assertion failed: %s (%s:%d)\n", expr, file,
                        line);
        }
        abort();
}


#endif