mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr
This commit is contained in:
parent
4e6f03a860
commit
6cf59b6ae9
58 changed files with 315 additions and 469 deletions
|
@ -222,17 +222,15 @@ Optional<Text> Text::parse(const StringView& str)
|
|||
current_link_is_actually_img = true;
|
||||
break;
|
||||
case '[':
|
||||
#if MARKDOWN_DEBUG
|
||||
if (first_span_in_the_current_link != -1)
|
||||
dbgln("Dropping the outer link");
|
||||
#endif
|
||||
if constexpr (MARKDOWN_DEBUG) {
|
||||
if (first_span_in_the_current_link != -1)
|
||||
dbgln("Dropping the outer link");
|
||||
}
|
||||
first_span_in_the_current_link = spans.size();
|
||||
break;
|
||||
case ']': {
|
||||
if (first_span_in_the_current_link == -1) {
|
||||
#if MARKDOWN_DEBUG
|
||||
dbgln("Unmatched ]");
|
||||
#endif
|
||||
dbgln_if(MARKDOWN_DEBUG, "Unmatched ]");
|
||||
continue;
|
||||
}
|
||||
ScopeGuard guard = [&] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue