move new Waves backend debug bits into libs/pbd/debug.cc because backends are dynamically loaded AFTER command line parsing.

See comments in libs/pbd/debug.cc for more details
This commit is contained in:
Paul Davis 2014-10-29 22:34:12 -04:00
parent 4bc383e663
commit 2c1c92e8de
6 changed files with 21 additions and 63 deletions

View file

@ -51,6 +51,20 @@ uint64_t PBD::DEBUG::EventLoop = PBD::new_debug_bit ("eventloop");
uint64_t PBD::DEBUG::AbstractUI = PBD::new_debug_bit ("abstractui");
uint64_t PBD::DEBUG::FileUtils = PBD::new_debug_bit ("fileutils");
/* These are debug bits that are used by backends. Since these are loaded dynamically,
after command-line parsing, defining them in code that is part of the backend
doesn't make them available for command line parsing. Put them here.
This is sort of a hack, because it means that the debug bits aren't defined
with the code in which they are relevant. But providing access to debug bits
from dynamically loaded code, for use in command line parsing, is way above the pay grade
of this debug tracing scheme.
*/
uint64_t PBD::DEBUG::WavesMIDI = PBD::new_debug_bit ("WavesMIDI");
uint64_t PBD::DEBUG::WavesAudio = PBD::new_debug_bit ("WavesAudio");
uint64_t PBD::debug_bits = 0x0;
uint64_t