diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 18:33:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 18:33:43 +0000 |
commit | 7cf4419d62d286bd3a62c98e891f35678f061479 (patch) | |
tree | 35321733edef6d1c8824471f834aca61303e4e40 /libs/ardour/region_factory.cc | |
parent | 01471c8879869dc87a6a17d88c945728a3193325 (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/region_factory.cc')
-rw-r--r-- | libs/ardour/region_factory.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index 96a88a6e09..1fd81f9a4b 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -75,7 +75,9 @@ RegionFactory::create (boost::shared_ptr<const Region> region, bool announce) } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -110,7 +112,9 @@ RegionFactory::create (boost::shared_ptr<Region> region, const PropertyList& pli } } - boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS + boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -145,7 +149,9 @@ RegionFactory::create (boost::shared_ptr<Region> region, frameoffset_t offset, c } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -180,7 +186,9 @@ RegionFactory::create (boost::shared_ptr<Region> region, const SourceList& srcs, } } - boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS + boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -218,7 +226,9 @@ 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"); +#endif return ret; } @@ -256,7 +266,9 @@ RegionFactory::create (SourceList& srcs, const XMLNode& node) } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } |