summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/boost_debug.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-25 22:23:30 +0100
committerRobin Gareus <robin@gareus.org>2020-02-25 22:23:30 +0100
commitbcfe16610ac588dffb5b639b033d60fa59a29717 (patch)
tree25f868d0f96d12a318d2156a50927efc90dda0b6 /libs/ardour/ardour/boost_debug.h
parent9e6435ff145ed7c99312e0d51d9dd23a1a8c3997 (diff)
Consolidate shared-ptr debugging
Diffstat (limited to 'libs/ardour/ardour/boost_debug.h')
-rw-r--r--libs/ardour/ardour/boost_debug.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/libs/ardour/ardour/boost_debug.h b/libs/ardour/ardour/boost_debug.h
index bdd3e63531..132c17cd02 100644
--- a/libs/ardour/ardour/boost_debug.h
+++ b/libs/ardour/ardour/boost_debug.h
@@ -25,15 +25,24 @@
unless the program was configured with --boost-sp-debug
*/
-//#define BOOST_MARK_ROUTE(p) boost_debug_shared_ptr_mark_interesting((p).get(),"Route")
-//#define BOOST_MARK_TRACK(p) boost_debug_shared_ptr_mark_interesting((p).get(),"Track")
-//#define BOOST_MARK_VCA(p) boost_debug_shared_ptr_mark_interesting((p).get(),"ControlMaster")
-//#define BOOST_SHOW_POINTERS() boost_debug_list_ptrs()
+//#define BOOST_MARK_ROUTE(p) boost_debug_shared_ptr_mark_interesting ((p).get(),"Route")
+//#define BOOST_MARK_TRACK(p) boost_debug_shared_ptr_mark_interesting ((p).get(),"Track")
+//#define BOOST_MARK_VCA(p) boost_debug_shared_ptr_mark_interesting ((p).get(),"ControlMaster")
+//#define BOOST_MARK_REGION(p) boost_debug_shared_ptr_mark_interesting ((p).get(), "Region")
+//#define BOOST_MARK_SOURCE(p) boost_debug_shared_ptr_mark_interesting ((p).get(), "Source")
+//#define BOOST_MARK_TMM(p) boost_debug_shared_ptr_mark_interesting ((p).get(), "TransportMaster")
#define BOOST_MARK_ROUTE(p)
#define BOOST_MARK_TRACK(p)
#define BOOST_MARK_VCA(p)
-#define BOOST_SHOW_POINTERS()
+#define BOOST_MARK_REGION(p)
+#define BOOST_MARK_SOURCE(p)
+#define BOOST_MARK_TMM(p)
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
+#define BOOST_SHOW_POINTERS() boost_debug_list_ptrs()
+#else
+#define BOOST_SHOW_POINTERS()
+#endif
#endif /* __libardour_boost_debug_h__ */