blob: 9bd1107dea88d3792ea1c8df15a43b54d9822aca (
plain)
1
2
3
4
5
6
7
8
9
|
#include <assert.h>
#include <kernel/arch/generic.h>
_Noreturn void __badassert(const char *func, const char *file, int line) {
/* same format as panics */
kprintf("\nan assert PANIC! at the %s (%s:%u)\n", func, file, line);
debug_stacktrace();
cpu_halt();
}
|