From 3aaaa7e4593b456362b622d2ad12cf39a588a41f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 25 Feb 2020 15:19:26 +0100 Subject: Update region-factory boost-debug --- libs/ardour/region_factory.cc | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'libs') 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 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, 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, 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, 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; } -- cgit v1.2.3