blob: 6ebb6eda1d1679228328e41092549516c7b12b87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <bits/ensure.h>
[[gnu::noreturn]] void __assert_fail(const char *assertion, const char *file, unsigned int line,
const char *function) {
fprintf(stderr, "In function %s, file %s:%d: Assertion '%s' failed!\n",
function, file, line, assertion);
abort();
}
|