1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

Mark LibC's assertion faillure helper with __NORETURN.

This commit is contained in:
Andreas Kling 2018-11-04 13:13:57 +01:00
parent 8b4b684d6d
commit 9bd09454e3
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
__BEGIN_DECLS
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) __NORETURN;
#define assert(expr) ((expr) ? (void)0 : __assertion_failed(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__))
#define CRASH() do { asm volatile("ud2"); } while(0)