summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-25 15:19:26 +0100
committerRobin Gareus <robin@gareus.org>2020-02-25 16:17:00 +0100
commit3aaaa7e4593b456362b622d2ad12cf39a588a41f (patch)
tree7df29c2b930461ed7b4ba4932dd33327161de582 /libs
parentfc91c217d137ed5f05da76c198c3535a08ff5e6b (diff)
Update region-factory boost-debug
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/region_factory.cc27
1 files changed, 15 insertions, 12 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc
index 52b656e79f..1242ec8aba 100644
--- a/libs/ardour/region_factory.cc
+++ b/libs/ardour/region_factory.cc
@@ -28,6 +28,7 @@
#include "ardour/audioregion.h"
#include "ardour/audiosource.h"
+#include "ardour/boost_debug.h"
#include "ardour/midi_region.h"
#include "ardour/midi_source.h"
#include "ardour/region.h"
@@ -36,6 +37,8 @@
#include "pbd/i18n.h"
+// #define BOOST_DEBUG_REGION
+
using namespace ARDOUR;
using namespace PBD;
using namespace std;
@@ -98,8 +101,8 @@ RegionFactory::create (boost::shared_ptr<const Region> region, bool announce, bo
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -139,8 +142,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, const PropertyList& pli
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -180,8 +183,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, MusicSample offset, con
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -221,8 +224,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, const SourceList& srcs,
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -265,8 +268,8 @@ RegionFactory::create (const SourceList& srcs, const PropertyList& plist, bool a
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -310,8 +313,8 @@ RegionFactory::create (SourceList& srcs, const XMLNode& node)
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}