mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
Everywhere: Remove unused RELEASE_ASSERT macro
This commit is contained in:
parent
5d180d1f99
commit
679cc154e6
Notes:
sideshowbarker
2024-07-18 21:58:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/679cc154e61
@ -33,7 +33,6 @@
|
||||
# ifndef __serenity__
|
||||
# define VERIFY assert
|
||||
# define VERIFY_NOT_REACHED() assert(false)
|
||||
# define RELEASE_ASSERT assert
|
||||
# define TODO VERIFY_NOT_REACHED
|
||||
# endif
|
||||
#endif
|
||||
|
@ -45,13 +45,6 @@ using AK::warnln;
|
||||
::AK::warnln("\033[31;1mFAIL\033[0m: {}:{}: VERIFY({}) failed", __FILE__, __LINE__, #x); \
|
||||
} while (false)
|
||||
|
||||
#undef RELEASE_ASSERT
|
||||
#define RELEASE_ASSERT(x) \
|
||||
do { \
|
||||
if (!(x)) \
|
||||
::AK::warnln("\033[31;1mFAIL\033[0m: {}:{}: RELEASE_ASSERT({}) failed", __FILE__, __LINE__, #x); \
|
||||
} while (false)
|
||||
|
||||
#undef VERIFY_NOT_REACHED
|
||||
#define VERIFY_NOT_REACHED() \
|
||||
do { \
|
||||
|
@ -41,11 +41,6 @@
|
||||
do { \
|
||||
asm volatile("ud2"); \
|
||||
} while (0)
|
||||
#define RELEASE_ASSERT(x) \
|
||||
do { \
|
||||
if (!(x)) \
|
||||
CRASH(); \
|
||||
} while (0)
|
||||
|
||||
#define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(cpu_flags() & 0x200))
|
||||
#define VERIFY_INTERRUPTS_ENABLED() VERIFY(cpu_flags() & 0x200)
|
||||
|
@ -50,7 +50,6 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
|
||||
asm volatile("ud2"); \
|
||||
} while (0)
|
||||
#define VERIFY assert
|
||||
#define RELEASE_ASSERT assert
|
||||
#define TODO VERIFY_NOT_REACHED
|
||||
|
||||
__END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user