mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
Everywhere: Remove unused RELEASE_ASSERT macro
This commit is contained in:
parent
5d180d1f99
commit
679cc154e6
|
@ -33,7 +33,6 @@
|
||||||
# ifndef __serenity__
|
# ifndef __serenity__
|
||||||
# define VERIFY assert
|
# define VERIFY assert
|
||||||
# define VERIFY_NOT_REACHED() assert(false)
|
# define VERIFY_NOT_REACHED() assert(false)
|
||||||
# define RELEASE_ASSERT assert
|
|
||||||
# define TODO VERIFY_NOT_REACHED
|
# define TODO VERIFY_NOT_REACHED
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -45,13 +45,6 @@ using AK::warnln;
|
||||||
::AK::warnln("\033[31;1mFAIL\033[0m: {}:{}: VERIFY({}) failed", __FILE__, __LINE__, #x); \
|
::AK::warnln("\033[31;1mFAIL\033[0m: {}:{}: VERIFY({}) failed", __FILE__, __LINE__, #x); \
|
||||||
} while (false)
|
} 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
|
#undef VERIFY_NOT_REACHED
|
||||||
#define VERIFY_NOT_REACHED() \
|
#define VERIFY_NOT_REACHED() \
|
||||||
do { \
|
do { \
|
||||||
|
|
|
@ -41,11 +41,6 @@
|
||||||
do { \
|
do { \
|
||||||
asm volatile("ud2"); \
|
asm volatile("ud2"); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define RELEASE_ASSERT(x) \
|
|
||||||
do { \
|
|
||||||
if (!(x)) \
|
|
||||||
CRASH(); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(cpu_flags() & 0x200))
|
#define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(cpu_flags() & 0x200))
|
||||||
#define VERIFY_INTERRUPTS_ENABLED() 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"); \
|
asm volatile("ud2"); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define VERIFY assert
|
#define VERIFY assert
|
||||||
#define RELEASE_ASSERT assert
|
|
||||||
#define TODO VERIFY_NOT_REACHED
|
#define TODO VERIFY_NOT_REACHED
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
Loading…
Reference in a new issue