mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
allow to compile PBD::Signals w/o connection debugging
This commit is contained in:
parent
9687c756a6
commit
d75b27f6dc
1 changed files with 7 additions and 1 deletions
|
|
@ -39,7 +39,9 @@
|
||||||
#include "pbd/libpbd_visibility.h"
|
#include "pbd/libpbd_visibility.h"
|
||||||
#include "pbd/event_loop.h"
|
#include "pbd/event_loop.h"
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
#define DEBUG_PBD_SIGNAL_CONNECTIONS
|
#define DEBUG_PBD_SIGNAL_CONNECTIONS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
|
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
|
||||||
#include "pbd/stacktrace.h"
|
#include "pbd/stacktrace.h"
|
||||||
|
|
@ -53,7 +55,11 @@ class LIBPBD_API Connection;
|
||||||
class LIBPBD_API SignalBase
|
class LIBPBD_API SignalBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SignalBase () : _debug_connection (false) {}
|
SignalBase ()
|
||||||
|
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
|
||||||
|
: _debug_connection (false)
|
||||||
|
#endif
|
||||||
|
{}
|
||||||
virtual ~SignalBase () {}
|
virtual ~SignalBase () {}
|
||||||
virtual void disconnect (boost::shared_ptr<Connection>) = 0;
|
virtual void disconnect (boost::shared_ptr<Connection>) = 0;
|
||||||
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
|
#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue