diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-27 04:58:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-27 17:19:58 +0200 |
commit | d75b27f6dc3a5878672cd40b26a368eeee21356c (patch) | |
tree | eb68fef03c249781396d5b88c5000bc45b6af0cd /libs/pbd | |
parent | 9687c756a6010d24f88f8faaa77466bae8922b9a (diff) |
allow to compile PBD::Signals w/o connection debugging
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/signals.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/pbd/pbd/signals.h b/libs/pbd/pbd/signals.h index ef53770613..983c56c6de 100644 --- a/libs/pbd/pbd/signals.h +++ b/libs/pbd/pbd/signals.h @@ -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 |