mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
LibC: Move _abort
next to abort
It should be now the only user of it, and it is more logical to have it in `stdlib.h` than in `assert.h`
This commit is contained in:
parent
2c62d51e25
commit
0bfb7f9675
4 changed files with 8 additions and 8 deletions
|
@ -209,6 +209,12 @@ int atexit(void (*handler)())
|
|||
return __cxa_atexit(__atexit_to_cxa_atexit, (void*)handler, nullptr);
|
||||
}
|
||||
|
||||
void _abort()
|
||||
{
|
||||
asm volatile("ud2");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void abort()
|
||||
{
|
||||
// For starters, send ourselves a SIGABRT.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue