mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +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
Notes:
sideshowbarker
2024-07-18 21:58:46 +09:00
Author: https://github.com/awesomekling
Commit: 5d180d1f99
725 changed files with 3448 additions and 3448 deletions
|
@ -189,7 +189,7 @@ namespace Web::HTML {
|
|||
{
|
||||
|
||||
#define END_STATE \
|
||||
ASSERT_NOT_REACHED(); \
|
||||
VERIFY_NOT_REACHED(); \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
|
@ -2610,7 +2610,7 @@ void HTMLTokenizer::create_new_token(HTMLToken::Type type)
|
|||
HTMLTokenizer::HTMLTokenizer(const StringView& input, const String& encoding)
|
||||
{
|
||||
auto* decoder = TextCodec::decoder_for(encoding);
|
||||
ASSERT(decoder);
|
||||
VERIFY(decoder);
|
||||
m_decoded_input = decoder->to_utf8(input);
|
||||
m_utf8_view = Utf8View(m_decoded_input);
|
||||
m_utf8_iterator = m_utf8_view.begin();
|
||||
|
@ -2640,7 +2640,7 @@ void HTMLTokenizer::will_emit(HTMLToken& token)
|
|||
|
||||
bool HTMLTokenizer::current_end_tag_token_is_appropriate() const
|
||||
{
|
||||
ASSERT(m_current_token.is_end_tag());
|
||||
VERIFY(m_current_token.is_end_tag());
|
||||
if (!m_last_emitted_start_tag.is_start_tag())
|
||||
return false;
|
||||
return m_current_token.tag_name() == m_last_emitted_start_tag.tag_name();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue