}
}
+#define PyFunctionTrace 0
PyObject * GraphExecutor::FiniteStateMachine::PyFunction( const char * aPyFuncName ) {
PyObject * RetVal = NULL ;
PyObject * PyFunctionMapped = _MapOfPyFunctions[ aPyFuncName ] ;
if ( _GraphExecutingNumber > 1 && !PyObjRefIor ) {
RetVal = PyFunctionMapped ;
+#if PyFunctionTrace
MESSAGE( "GraphExecutor::FiniteStateMachine::PyFunction( '" << aPyFuncName << "' ) --> " ) ;
if ( RetVal ) {
MESSAGE( RetVal << " ob_refcnt " << RetVal->ob_refcnt ) ;
else {
MESSAGE( " NULL" ) ;
}
+#endif
}
else {
RetVal = PyFunctionMapped ;
+#if PyFunctionTrace
MESSAGE( "GraphExecutor::FiniteStateMachine::PyFunction( '" << aPyFuncName << "' ) --> " ) ;
if ( RetVal && PyObjRefIor ) {
MESSAGE( RetVal << " " << RetVal->ob_refcnt ) ;
else {
MESSAGE( " NULL" ) ;
}
+#endif
}
return RetVal ;
bool RetVal = false ;
if ( _MapOfPyFunctions[ aPyFuncName ] != NULL ) {
+#if PyFunctionTrace
PyObject * aPyFunc = _MapOfPyFunctions[ aPyFuncName ] ;
MESSAGE( "GraphExecutor::FiniteStateMachine::PyFunction( '" << aPyFuncName << "' , aPyFunction "
<< aPyFunction << " ) ob_refcnt " << aPyFunction->ob_refcnt << " already mapped : "
<< aPyFunc << " ob_refcnt " << aPyFunc->ob_refcnt ) ;
+#endif
}
else {
_MapOfPyFunctions[ aPyFuncName ] = aPyFunction ;
+#if PyFunctionTrace
MESSAGE( "GraphExecutor::FiniteStateMachine::PyFunction( '" << aPyFuncName << "' ) " << aPyFunction
<< " ) ob_refcnt " << aPyFunction->ob_refcnt << " mapped" ) ;
+#endif
RetVal = true ;
}
bool GraphExecutor::FiniteStateMachine::ErasePyFunction( const char * aPyFuncName ) {
+#if PyFunctionTrace
MESSAGE( "GraphExecutor::FiniteStateMachine::ErasePyFunction( '" << aPyFuncName << "' )" ) ;
+#endif
if ( _MapOfPyFunctions[ aPyFuncName ] != NULL ) {
_MapOfPyFunctions.erase( aPyFuncName ) ;
return true ;