reimplmenets the previous iteration with a brand new custom build system
This commit is contained in:
15
libc/stdlib/abort.c
Normal file
15
libc/stdlib/abort.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
__attribute__((__noreturn__))
|
||||
void abort(void) {
|
||||
#if defined(__is_libk)
|
||||
// TODO: Add proper kernel panic.
|
||||
printf("kernel: panic: abort()\n");
|
||||
#else
|
||||
// TODO: Abnormally terminate the process as if by SIGABRT.
|
||||
printf("abort()\n");
|
||||
#endif
|
||||
while (1) { }
|
||||
__builtin_unreachable();
|
||||
}
|
Reference in New Issue
Block a user