OK, I didn't want to tinker with Debug.h but you've persuaded me that it
needs to be done differently. Instead of NDEBUG, which as you point out
has another meaning, it's RG_NO_DEBUG_PRINT and Debug.h obeys both.
There is another debug printing issue that I want to air: We have a ton of
"[generic]" in the trace, which tells nobody anything. ISTM there is so
much of it because it's extra work to add to Debug.h just to get debug
printing.
So I added RG_MODULE_STRING which RG_DEBUG uses. It defaults to
"[generic] " if undefined, so if you do nothing it behaves exactly the
same as now. It's meant to be used like:
(RosegardenDocument.cpp)
: #define RG_MODULE_STRING "[RosegardenDocument]"
: #include "misc/Debug.h"
It results in output like:
: [RosegardenDocument] clearAllPlugins
instead of
: [generic] clearAllPlugins
Tom Breton (Tehom)
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel