X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkItkBlackBoxMacros.h;h=4a52d99523d73eac450507fda60041216d7ea95f;hb=8dd53a72bc1dd1ca2c6e2763c0aeb51c77ee352e;hp=7f10fef9cf29ff57124d146b5dddd082dea28e23;hpb=6575a389b71b1b85c79e4444885becb76ecf16e4;p=bbtk.git diff --git a/kernel/src/bbtkItkBlackBoxMacros.h b/kernel/src/bbtkItkBlackBoxMacros.h index 7f10fef..4a52d99 100644 --- a/kernel/src/bbtkItkBlackBoxMacros.h +++ b/kernel/src/bbtkItkBlackBoxMacros.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkItkBlackBoxMacros.h,v $ Language: C++ - Date: $Date: 2008/10/17 08:18:13 $ - Version: $Revision: 1.4 $ + Date: $Date: 2009/05/15 15:00:24 $ + Version: $Revision: 1.6 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -44,8 +44,10 @@ //=========================================================================== #define BBTK_ITK_DELETE() \ - void bbDelete() { \ + int bbDelete() { \ + int refs = itkParent::GetReferenceCount()-1; \ itkParent::UnRegister(); \ + return refs; \ } //=========================================================================== @@ -100,8 +102,9 @@ <<"]"<