mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Everywhere: Rename ASSERT => VERIFY
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED) Since all of these checks are done in release builds as well, let's rename them to VERIFY to prevent confusion, as everyone is used to assertions being compiled out in release. We can introduce a new ASSERT macro that is specifically for debug checks, but I'm doing this wholesale conversion first since we've accumulated thousands of these already, and it's not immediately obvious which ones are suitable for ASSERT.
This commit is contained in:
@@ -36,7 +36,7 @@ UNMAP_AFTER_INIT void SpuriousInterruptHandler::initialize(u8 interrupt_number)
|
||||
|
||||
void SpuriousInterruptHandler::register_handler(GenericInterruptHandler& handler)
|
||||
{
|
||||
ASSERT(!m_real_handler);
|
||||
VERIFY(!m_real_handler);
|
||||
m_real_handler = &handler;
|
||||
}
|
||||
void SpuriousInterruptHandler::unregister_handler(GenericInterruptHandler&)
|
||||
@@ -88,7 +88,7 @@ void SpuriousInterruptHandler::enable_interrupt_vector()
|
||||
|
||||
void SpuriousInterruptHandler::disable_interrupt_vector()
|
||||
{
|
||||
ASSERT(!m_real_irq); // this flag should not be set when we call this method
|
||||
VERIFY(!m_real_irq); // this flag should not be set when we call this method
|
||||
if (!m_enabled)
|
||||
return;
|
||||
m_enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user