mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:25:10 +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:
parent
b33a6a443e
commit
5d180d1f99
725 changed files with 3448 additions and 3448 deletions
|
@ -141,8 +141,8 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
|
|||
MemoryManager::initialize(0);
|
||||
|
||||
// Ensure that the safemem sections are not empty. This could happen if the linker accidentally discards the sections.
|
||||
ASSERT(&start_of_safemem_text != &end_of_safemem_text);
|
||||
ASSERT(&start_of_safemem_atomic_text != &end_of_safemem_atomic_text);
|
||||
VERIFY(&start_of_safemem_text != &end_of_safemem_text);
|
||||
VERIFY(&start_of_safemem_atomic_text != &end_of_safemem_atomic_text);
|
||||
|
||||
// Invoke all static global constructors in the kernel.
|
||||
// Note that we want to do this as early as possible.
|
||||
|
@ -190,7 +190,7 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
|
|||
}
|
||||
|
||||
Scheduler::start();
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -208,7 +208,7 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init_ap(u32 cpu, Processor* proces
|
|||
Scheduler::set_idle_thread(APIC::the().get_idle_thread(cpu));
|
||||
|
||||
Scheduler::start();
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -322,7 +322,7 @@ void init_stage2(void*)
|
|||
NetworkTask::spawn();
|
||||
|
||||
Process::current()->sys$exit(0);
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT void setup_serial_debug()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue