mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
Use modern C++ attributes instead of __attribute__ voodoo.
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
This commit is contained in:
parent
fbcc8ab840
commit
022f7790db
34 changed files with 99 additions and 124 deletions
|
@ -3,7 +3,7 @@
|
|||
#include "kprintf.h"
|
||||
#include "i386.h"
|
||||
|
||||
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func) NORETURN;
|
||||
[[noreturn]] void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func);
|
||||
|
||||
#define ASSERT(expr) (static_cast<bool>(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