Commit 1a5a6d14 authored by Sven Wegener's avatar Sven Wegener Committed by Damien George
Browse files

bare-arm: Add dummy __assert_func and __fatal_error

Required to build bare-arm with debugging.
Signed-off-by: default avatarSven Wegener <>
parent 238ab501
......@@ -78,6 +78,17 @@ MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
void nlr_jump_fail(void *val) {
void NORETURN __fatal_error(const char *msg) {
while (1);
#ifndef NDEBUG
void MP_WEAK __assert_func(const char *file, int line, const char *func, const char *expr) {
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
__fatal_error("Assertion failed");
int _lseek() {return 0;}
int _read() {return 0;}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment