Syncboot/libc/stdlib/abort.c
2019-04-03 17:46:58 -04:00

15 lines
267 B
C

#include <stdio.h>
#include <stdlib.h>
__attribute__((__noreturn__)) void abort(void) {
#if defined(__is_libk)
// TODO: Kernel panic.
printf(">>PANIC<<<\n abort() panicked!\n");
#else
printf("abort() called\n");
#endif
while (1) {
}
__builtin_unreachable();
}