From 7130deafdf0cda829418bd30dee8d9ea7b539076 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 6 Jul 2023 16:14:24 -0600 Subject: [PATCH] fix AbstractUI redefine of DEBUG_TRACE to still use PBD::debug_print-ish stuff --- libs/pbd/pbd/abstract_ui.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/pbd/pbd/abstract_ui.cc b/libs/pbd/pbd/abstract_ui.cc index 5665b983e5..c0f580de9f 100644 --- a/libs/pbd/pbd/abstract_ui.cc +++ b/libs/pbd/pbd/abstract_ui.cc @@ -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 void