mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Mark LibC's assertion faillure helper with __NORETURN.
This commit is contained in:
parent
8b4b684d6d
commit
9bd09454e3
3 changed files with 3 additions and 3 deletions
|
@ -4,11 +4,10 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
extern void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func)
|
||||
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func)
|
||||
{
|
||||
fprintf(stderr, "ASSERTION FAILED: %s\n%s:%u in %s\n", msg, file, line, func);
|
||||
abort();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue