mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-27 05:29:27 +00:00
Everywhere: Debug macros instead of constexpr.
This was done with the following script:
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/dbgln<debug_([a-z_]+)>/dbgln<\U\1_DEBUG>/' {} \;
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/if constexpr \(debug_([a-z0-9_]+)/if constexpr \(\U\1_DEBUG/' {} \;
This commit is contained in:
@@ -48,7 +48,7 @@ void CursorTool::on_mousedown(GUI::MouseEvent& event)
|
||||
m_editor.selection().toggle(*result.widget);
|
||||
} else if (!event.modifiers()) {
|
||||
if (!m_editor.selection().contains(*result.widget)) {
|
||||
dbgln<debug_cursor_tool>("Selection didn't contain {}, making it the only selected one", *result.widget);
|
||||
dbgln<CURSOR_TOOL_DEBUG>("Selection didn't contain {}, making it the only selected one", *result.widget);
|
||||
m_editor.selection().set(*result.widget);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user