user: implement mlibc as the libc, finally.
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
@@ -0,0 +1,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();
|
||||
}
|
||||
Reference in New Issue
Block a user