Everywhere: Remove unused RELEASE_ASSERT macro

This commit is contained in:
Andreas Kling 2021-02-23 21:11:53 +01:00
parent 5d180d1f99
commit 679cc154e6
Notes: sideshowbarker 2024-07-18 21:58:42 +09:00
4 changed files with 0 additions and 14 deletions

View File

@ -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

View File

@ -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 { \

View File

@ -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)

View File

@ -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