mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38: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
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
void dealloc(void* ptr)
|
||||
{
|
||||
ASSERT(ptr);
|
||||
VERIFY(ptr);
|
||||
if (ptr < m_base || ptr >= m_end) {
|
||||
kfree(ptr);
|
||||
return;
|
||||
|
@ -159,7 +159,7 @@ void* slab_alloc(size_t slab_size)
|
|||
return s_slab_allocator_64.alloc();
|
||||
if (slab_size <= 128)
|
||||
return s_slab_allocator_128.alloc();
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
void slab_dealloc(void* ptr, size_t slab_size)
|
||||
|
@ -172,7 +172,7 @@ void slab_dealloc(void* ptr, size_t slab_size)
|
|||
return s_slab_allocator_64.dealloc(ptr);
|
||||
if (slab_size <= 128)
|
||||
return s_slab_allocator_128.dealloc(ptr);
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
void slab_alloc_stats(Function<void(size_t slab_size, size_t allocated, size_t free)> callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue