mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
AK: Make dbgln_if() avoid evaluating the arguments when disabled
Naturally, this makes the `enabled` flag on dbgln() obsolete.
This commit is contained in:
parent
71de5433f8
commit
857cdee0d0
3 changed files with 10 additions and 8 deletions
|
@ -714,7 +714,7 @@ void Parser::error(StringView message)
|
|||
m_tokens[m_state.token_index].m_start.column);
|
||||
}
|
||||
m_errors.append(formatted_message);
|
||||
dbgln<CPP_DEBUG>("{}", formatted_message);
|
||||
dbgln_if(CPP_DEBUG, "{}", formatted_message);
|
||||
}
|
||||
|
||||
bool Parser::match_expression()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue