geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Include debug.h in all .cc files

Open caclark opened this issue 1 year ago • 1 comments

At sometime during the code cleanup, #include debug.h has been removed from the source file if there are no explicit debug_[1-4]() calls.

I debug by throwing large numbers of debug_0("some text") commands all over the code.

In some cases I now need to include an additional include statement.

Is there any way I can shortcut this? Is there a better solution?

caclark avatar Jul 08 '24 13:07 caclark

Is there any way I can shortcut this?

IWYU has always_keep pragma.

Although I believe that temporary code like cstdio/printf(), iostream/cout should be removed after debugging.

qarkai avatar Jul 09 '24 18:07 qarkai