allow to compile PBD::Signals w/o connection debugging
authorRobin Gareus <robin@gareus.org>
Mon, 27 Apr 2015 02:58:53 +0000 (04:58 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 27 Apr 2015 15:19:58 +0000 (17:19 +0200)
libs/pbd/pbd/signals.h

index ef537706131741bd07d8e939770053bb77331ee5..983c56c6de1305c42bff6a40188742c183a69cca 100644 (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