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:
parent
6691db1c54
commit
3d860b9665
@ -43,6 +43,12 @@ DECLARE_DEFAULT_COMPARISONS(ptw32_handle_t)
|
|||||||
|
|
||||||
using namespace std;
|
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
|
template<typename RequestBuffer> void
|
||||||
cleanup_request_buffer (void* ptr)
|
cleanup_request_buffer (void* ptr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user