fix AbstractUI redefine of DEBUG_TRACE to still use PBD::debug_print-ish stuff

This commit is contained in:
Paul Davis 2023-07-06 16:14:24 -06:00
parent 37f859197b
commit 7130deafdf
1 changed files with 3 additions and 2 deletions

View File

@ -45,8 +45,9 @@ using namespace std;
#ifndef NDEBUG
#undef DEBUG_TRACE
/* cannot use debug transmitter system here because it will cause recursion */
#define DEBUG_TRACE(bits,str) if (((bits) & PBD::debug_bits).any()) { std::cout << # bits << ": " << str; }
/* cannot use the regular macro here, because PBD::debug_print() uses the debug
* transmitter system and it will cause recursion */
#define DEBUG_TRACE(bits,str) if (((bits) & PBD::debug_bits).any()) { PBD::debug_only_print (#bits, str); }
#endif
template<typename RequestBuffer> void