mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Everywhere: Name debug macros more consistently.
Personally, I prefer the naming convention DEBUG_FOO over FOO_DEBUG, but the majority of the debug macros are already named in the latter naming convention, so I just enforce consistency here. 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/DEBUG_PATH/PATH_DEBUG/' {} \;
This commit is contained in:
parent
acdcf59a33
commit
bb483f7ef4
9 changed files with 44 additions and 44 deletions
|
@ -36,7 +36,7 @@ namespace HackStudio {
|
|||
|
||||
void CursorTool::on_mousedown(GUI::MouseEvent& event)
|
||||
{
|
||||
#if DEBUG_CURSOR_TOOL
|
||||
#if CURSOR_TOOL_DEBUG
|
||||
dbgln("CursorTool::on_mousedown");
|
||||
#endif
|
||||
auto& form_widget = m_editor.form_widget();
|
||||
|
@ -73,7 +73,7 @@ void CursorTool::on_mousedown(GUI::MouseEvent& event)
|
|||
|
||||
void CursorTool::on_mouseup(GUI::MouseEvent& event)
|
||||
{
|
||||
#if DEBUG_CURSOR_TOOL
|
||||
#if CURSOR_TOOL_DEBUG
|
||||
dbgln("CursorTool::on_mouseup");
|
||||
#endif
|
||||
if (event.button() == GUI::MouseButton::Left) {
|
||||
|
@ -94,7 +94,7 @@ void CursorTool::on_mouseup(GUI::MouseEvent& event)
|
|||
|
||||
void CursorTool::on_mousemove(GUI::MouseEvent& event)
|
||||
{
|
||||
#if DEBUG_CURSOR_TOOL
|
||||
#if CURSOR_TOOL_DEBUG
|
||||
dbgln("CursorTool::on_mousemove");
|
||||
#endif
|
||||
auto& form_widget = m_editor.form_widget();
|
||||
|
@ -133,7 +133,7 @@ void CursorTool::on_mousemove(GUI::MouseEvent& event)
|
|||
|
||||
void CursorTool::on_keydown(GUI::KeyEvent& event)
|
||||
{
|
||||
#if DEBUG_CURSOR_TOOL
|
||||
#if CURSOR_TOOL_DEBUG
|
||||
dbgln("CursorTool::on_keydown");
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue