summaryrefslogtreecommitdiff
path: root/libc/exit/assert.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
committerAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
commit4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch)
tree80f156b7940d9d19971395f335530170c69516c7 /libc/exit/assert.c
Move everything into a new repo.
Diffstat (limited to 'libc/exit/assert.c')
-rw-r--r--libc/exit/assert.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/exit/assert.c b/libc/exit/assert.c
new file mode 100644
index 0000000..b48773a
--- /dev/null
+++ b/libc/exit/assert.c
@@ -0,0 +1,12 @@
+#include <assert.h>
+#include <log.h>
+#include <stdio.h>
+#include <log.h>
+
+void aFailed(char *f, int l) {
+ kprintf("Assert failed\n");
+ kprintf("%s : %d\n", f, l);
+ dump_backtrace(10);
+ for (;;)
+ ;
+}