mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +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
Notes:
sideshowbarker
2024-07-18 20:28:03 +09:00
Author: https://github.com/gunnarbeutner
Commit: 44486e8818
Pull-request: https://github.com/SerenityOS/serenity/pull/6276
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