blob: 57c953a2390d5414adbdb78dfc5eb3923b3d7c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <bits/ensure.h>
#include <mlibc/debug.hpp>
void __ensure_fail(const char *assertion, const char *file, unsigned int line,
const char *function) {
mlibc::panicLogger() << "In function " << function
<< ", file " << file << ":" << line << "\n"
<< "__ensure(" << assertion << ") failed" << frg::endlog;
}
void __ensure_warn(const char *assertion, const char *file, unsigned int line,
const char *function) {
mlibc::infoLogger() << "In function " << function
<< ", file " << file << ":" << line << "\n"
<< "__ensure(" << assertion << ") failed" << frg::endlog;
}
|