13
0

allow to compile PBD::Signals w/o connection debugging

This commit is contained in:
Robin Gareus 2015-04-27 04:58:53 +02:00
parent 9687c756a6
commit d75b27f6dc

View File

@ -39,7 +39,9 @@
#include "pbd/libpbd_visibility.h"
#include "pbd/event_loop.h"
#ifndef NDEBUG
#define DEBUG_PBD_SIGNAL_CONNECTIONS
#endif
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
#include "pbd/stacktrace.h"
@ -53,7 +55,11 @@ class LIBPBD_API Connection;
class LIBPBD_API SignalBase
{
public:
SignalBase () : _debug_connection (false) {}
SignalBase ()
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
: _debug_connection (false)
#endif
{}
virtual ~SignalBase () {}
virtual void disconnect (boost::shared_ptr<Connection>) = 0;
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS