summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-10 18:33:43 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-10 18:33:43 +0000
commit7cf4419d62d286bd3a62c98e891f35678f061479 (patch)
tree35321733edef6d1c8824471f834aca61303e4e40 /libs/ardour/session.cc
parent01471c8879869dc87a6a17d88c945728a3193325 (diff)
#ifdef-ize all/most uses of the boost debug hooks API
git-svn-id: svn://localhost/ardour2/branches/3.0@8823 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index aa0b29ed1e..de0076372f 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -328,7 +328,9 @@ Session::destroy ()
DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
boost_debug_list_ptrs ();
+#endif
}
void
@@ -1533,7 +1535,9 @@ Session::new_midi_track (TrackMode mode, RouteGroup* route_group, uint32_t how_m
mt->use_new_diskstream();
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
boost_debug_shared_ptr_mark_interesting (mt, "Track");
+#endif
track = boost::shared_ptr<MidiTrack>(mt);
{
@@ -1702,7 +1706,9 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
at->use_new_diskstream();
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
boost_debug_shared_ptr_mark_interesting (at, "Track");
+#endif
track = boost::shared_ptr<AudioTrack>(at);
{
@@ -1820,7 +1826,9 @@ Session::new_audio_route (int input_channels, int output_channels, RouteGroup* r
goto failure;
}
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
boost_debug_shared_ptr_mark_interesting (rt, "Route");
+#endif
boost::shared_ptr<Route> bus (rt);
{