mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
Make QtCreator stop complaining about the ASSERT macro.
This commit is contained in:
parent
e7b1101f62
commit
973ff14180
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func) __NORETURN;
|
||||
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func) __attribute__ ((noreturn));
|
||||
|
||||
#define assert(expr) ((expr) ? (void)0 : __assertion_failed(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__))
|
||||
#define CRASH() do { asm volatile("ud2"); } while(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue