blob: 630fdec11a161b827047281b8a0bb3e1c39f8963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <assert.h>
#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();
}
|