mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +00:00
LibC: Turn CRASH() into a function and add noreturn attribute
This way CRASH() can be used in functions that are themselves marked as noreturn.
This commit is contained in:
parent
d5e1250061
commit
44486e8818
2 changed files with 9 additions and 4 deletions
|
@ -53,3 +53,9 @@ void __assertion_failed(const char* msg)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void __crash()
|
||||
{
|
||||
asm volatile("ud2");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue