summaryrefslogtreecommitdiff
path: root/lib/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/panic.c')
-rw-r--r--lib/panic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/panic.c b/lib/panic.c
index 0efa134344..bae8a35935 100644
--- a/lib/panic.c
+++ b/lib/panic.c
@@ -45,3 +45,11 @@ void panic(const char *fmt, ...)
#endif
panic_finish();
}
+
+void __assert_fail(const char *assertion, const char *file, unsigned int line,
+ const char *function)
+{
+ /* This will not return */
+ panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,
+ assertion);
+}