mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +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
|
@ -104,7 +104,7 @@ struct read_element_concrete<int, ApT, kind> {
|
|||
return false;
|
||||
|
||||
auto diff = endptr - nptr;
|
||||
ASSERT(diff > 0);
|
||||
VERIFY(diff > 0);
|
||||
lexer.ignore((size_t)diff);
|
||||
|
||||
*ptr = value;
|
||||
|
@ -155,7 +155,7 @@ struct read_element_concrete<unsigned, ApT, kind> {
|
|||
return false;
|
||||
|
||||
auto diff = endptr - nptr;
|
||||
ASSERT(diff > 0);
|
||||
VERIFY(diff > 0);
|
||||
lexer.ignore((size_t)diff);
|
||||
|
||||
*ptr = value;
|
||||
|
@ -189,7 +189,7 @@ struct read_element_concrete<unsigned long long, ApT, kind> {
|
|||
return false;
|
||||
|
||||
auto diff = endptr - nptr;
|
||||
ASSERT(diff > 0);
|
||||
VERIFY(diff > 0);
|
||||
lexer.ignore((size_t)diff);
|
||||
|
||||
*ptr = value;
|
||||
|
@ -220,7 +220,7 @@ struct read_element_concrete<float, ApT, kind> {
|
|||
return false;
|
||||
|
||||
auto diff = endptr - nptr;
|
||||
ASSERT(diff > 0);
|
||||
VERIFY(diff > 0);
|
||||
lexer.ignore((size_t)diff);
|
||||
|
||||
*ptr = value;
|
||||
|
@ -235,7 +235,7 @@ struct read_element {
|
|||
switch (length_modifier) {
|
||||
default:
|
||||
case None:
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
case Default:
|
||||
return read_element_concrete<T, T, kind> {}(input_lexer, ap);
|
||||
case Char:
|
||||
|
@ -510,7 +510,7 @@ extern "C" int vsscanf(const char* input, const char* format, va_list ap)
|
|||
default:
|
||||
// "undefined behaviour", let's be nice and crash.
|
||||
dbgln("Invalid conversion specifier {} in scanf!", (int)conversion_specifier);
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
case Decimal:
|
||||
if (!read_element<int, ReadKind::Normal> {}(length_modifier, input_lexer, &ap))
|
||||
format_lexer.consume_all();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue