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