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 $
=========================================================================*/
/* ---------------------------------------------------------------------
//===========================================================================
#define BBTK_ITK_DELETE() \
- void bbDelete() { \
+ int bbDelete() { \
+ int refs = itkParent::GetReferenceCount()-1; \
itkParent::UnRegister(); \
+ return refs; \
}
//===========================================================================
<<"]"<<std::endl); \
itkParent::Update(); \
bbtkDebugMessage("process",2,"<** Processing ["<<bbGetFullName() \
- <<"]"<<std::endl); \
- }
+ <<"]"<<std::endl); \
+ }
+
//============================================================================
//===========================================================================