mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19: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
|
@ -59,7 +59,7 @@ int pthread_once(pthread_once_t* self, void (*callback)(void))
|
|||
switch (state2) {
|
||||
case State::INITIAL:
|
||||
case State::DONE:
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
case State::PERFORMING_NO_WAITERS:
|
||||
// The fast path: there's no contention, so we don't have to wake
|
||||
// anyone.
|
||||
|
@ -77,7 +77,7 @@ int pthread_once(pthread_once_t* self, void (*callback)(void))
|
|||
while (true) {
|
||||
switch (state2) {
|
||||
case State::INITIAL:
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
case State::DONE:
|
||||
// Awesome, nothing to do then.
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue