13
0

libpbd: do not use DEBUG transmitter from inside AbstractUI<T> request methods

This will lead to recursion, since delivering the debug msg goes through a request method.

Discovered by running with -D all
This commit is contained in:
Paul Davis 2022-04-26 21:56:20 -06:00
parent 6691db1c54
commit 3d860b9665

View File

@ -43,6 +43,12 @@ DECLARE_DEFAULT_COMPARISONS(ptw32_handle_t)
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; }
#endif
template<typename RequestBuffer> void
cleanup_request_buffer (void* ptr)
{