X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fpool_alloc_mixin.cti;h=e2a80abdd28e45c7d6615b8c067b6509c325fa9f;hb=7a4d13b962b9cd20e2e0bad0753a9bb1ca3219c4;hp=9b739e9c6108f973888e99e10818298a7310f7dc;hpb=29825d5db542bd3a6769101abe40a8ed86409613;p=senf.git diff --git a/Utils/pool_alloc_mixin.cti b/Utils/pool_alloc_mixin.cti index 9b739e9..e2a80ab 100644 --- a/Utils/pool_alloc_mixin.cti +++ b/Utils/pool_alloc_mixin.cti @@ -37,7 +37,7 @@ prefix_ void * senf::pool_alloc_mixin::operator new(size_t size) // When deriving from Self you may not change the class's size without // inheriting from pool_alloc_mixin again. See pool_alloc_mixin documentation. SENF_ASSERT( size <= sizeof(Self) ); -#ifndef SENF_NO_DEBUG +#ifdef SENF_DEBUG allocCounter(1); #endif return boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) >::malloc(); @@ -46,13 +46,13 @@ prefix_ void * senf::pool_alloc_mixin::operator new(size_t size) template prefix_ void senf::pool_alloc_mixin::operator delete(void * p, size_t size) { -#ifndef SENF_NO_DEBUG +#ifdef SENF_DEBUG allocCounter(-1); #endif boost::singleton_pool< pool_alloc_mixin_tag, sizeof(Self) >::free(p); } -#ifndef SENF_NO_DEBUG +#ifdef SENF_DEBUG template prefix_ unsigned long senf::pool_alloc_mixin::allocCounter()