Mark LibC's assertion faillure helper with __NORETURN.

This commit is contained in:
Andreas Kling 2018-11-04 13:13:57 +01:00
commit 9bd09454e3
Notes: sideshowbarker 2024-07-19 18:33:54 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -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();
}
}