#ifdef-ize all/most uses of the boost debug hooks API
[ardour.git] / libs / ardour / route.cc
index 15907444f0ee19b81f93430c34b453992773c0c7..68a4019cf75dc7b94a13ac9595779590b688080d 100644 (file)
@@ -27,6 +27,7 @@
 #include "pbd/memento_command.h"
 #include "pbd/stacktrace.h"
 #include "pbd/convert.h"
+#include "pbd/boost_debug.h"
 
 #include "evoral/Curve.hpp"
 
@@ -118,7 +119,11 @@ Route::init ()
 
         /* panning */
         
-        _pannable.reset (new Pannable (_session));
+        Pannable* p = new Pannable (_session);
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
+       boost_debug_shared_ptr_mark_interesting (p, "Pannable");
+#endif
+        _pannable.reset (p);
 
        /* input and output objects */