X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkItkBlackBoxMacros.h;h=98adfcbea37a4142295b1969b0bf046a7839c791;hb=f9b730b93d4a2731f365094735bd435a35d5bc90;hp=7f10fef9cf29ff57124d146b5dddd082dea28e23;hpb=6575a389b71b1b85c79e4444885becb76ecf16e4;p=bbtk.git diff --git a/kernel/src/bbtkItkBlackBoxMacros.h b/kernel/src/bbtkItkBlackBoxMacros.h index 7f10fef..98adfcb 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/28 08:12:06 $ + Version: $Revision: 1.7 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -44,8 +44,10 @@ //=========================================================================== #define BBTK_ITK_DELETE() \ - void bbDelete() { \ + int bbDelete() { \ + int refs = itkParent::GetReferenceCount()-1; \ itkParent::UnRegister(); \ + return refs; \ } //=========================================================================== @@ -96,12 +98,13 @@ public: \ inline void bbUserProcess() \ { \ - bbtkDebugMessage("process",1,"**> Processing ["< Processing..." \ + <