mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +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
|
@ -44,11 +44,11 @@ void EBRPartitionTable::search_extended_partition(const StorageDevice& device, M
|
|||
if (limit == 0)
|
||||
return;
|
||||
// EBRs should not carry more than 2 partitions (because they need to form a linked list)
|
||||
ASSERT(checked_ebr.partitions_count() <= 2);
|
||||
VERIFY(checked_ebr.partitions_count() <= 2);
|
||||
auto checked_logical_partition = checked_ebr.partition(0);
|
||||
|
||||
// If we are pointed to an invalid logical partition, something is seriously wrong.
|
||||
ASSERT(checked_logical_partition.has_value());
|
||||
VERIFY(checked_logical_partition.has_value());
|
||||
m_partitions.append(checked_logical_partition.value().offset(current_block_offset));
|
||||
if (!checked_ebr.contains_ebr())
|
||||
return;
|
||||
|
@ -66,7 +66,7 @@ EBRPartitionTable::EBRPartitionTable(const StorageDevice& device)
|
|||
return;
|
||||
m_valid = true;
|
||||
|
||||
ASSERT(partitions_count() == 0);
|
||||
VERIFY(partitions_count() == 0);
|
||||
|
||||
auto& header = this->header();
|
||||
for (size_t index = 0; index < 4; index++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue