void S626_OpenBoard( HBD hbd, DWORD PhysLoc, FPTR_ISR Callback, DWORD Priority ) { if( S626_VerifyTypes() != 0) { printf("warning: possible types problem"); } // Abort if a valid board handle is not specified. if ( hbd >= MAX_BOARDS ) return; // Increase counts of opening boards. open_boards ++; // Destroy any object that is currently occupying the board handle. Destructor( hbd ); // including: Close the board if it is open at CORE level, using S626CORE_BoardClose( hbd ); // Open CORE object for board open preparation. if ( !S626CORE_CoreOpen( hbd, open_boards ) ) { S626CORE_SetErrors( hbd, ERR_OPEN ); return; } // Attempt to open the board. Constructor( hbd, PhysLoc, Callback, Priority, 0 ); // including: Open the board at CORE level, using S626CORE_BoardOpen( hbd, IsBoardRevA ); //if ( S626CORE_GetErrors( HBD bd ) & ( ERR_OPEN | ERR_CARDREG | ERR_ALLOC_MEMORY | ERR_LOCK_BUFFER | ERR_THREAD | ERR_INTERRUPT ) ) //printf("error message: ? \n"); }
void GameObject::_Expire() { if(IsInWorld()) RemoveFromWorld(true); Destructor(); }
void FTransaction::FObjectRecord::SerializeContents( FArchive& Ar, int32 InOper ) { if( Array ) { //UE_LOG( LogEditorTransaction, Log, TEXT("Array %s %i*%i: %i"), Object ? *Object->GetFullName() : TEXT("Invalid Object"), Index, ElementSize, InOper); check((SIZE_T)Array >= (SIZE_T)Object.Get() + sizeof(UObject)); check((SIZE_T)Array + sizeof(FScriptArray) <= (SIZE_T)Object.Get() + Object->GetClass()->GetPropertiesSize()); check(ElementSize!=0); check(DefaultConstructor!=NULL); check(Serializer!=NULL); check(Index>=0); check(Count>=0); if( InOper==1 ) { // "Saving add order" or "Undoing add order" or "Redoing remove order". if( Ar.IsLoading() ) { checkSlow(Index+Count<=Array->Num()); for( int32 i=Index; i<Index+Count; i++ ) { Destructor( (uint8*)Array->GetData() + i*ElementSize ); } Array->Remove( Index, Count, ElementSize ); } } else { // "Undo/Redo Modify" or "Saving remove order" or "Undoing remove order" or "Redoing add order". if( InOper==-1 && Ar.IsLoading() ) { Array->InsertZeroed( Index, Count, ElementSize ); for( int32 i=Index; i<Index+Count; i++ ) { DefaultConstructor( (uint8*)Array->GetData() + i*ElementSize ); } } // Serialize changed items. check(Index+Count<=Array->Num()); for( int32 i=Index; i<Index+Count; i++ ) { Serializer( Ar, (uint8*)Array->GetData() + i*ElementSize ); } } } else { //UE_LOG(LogEditorTransaction, Log, TEXT("Object %s"), *Object->GetFullName()); check(Index==0); check(ElementSize==0); check(DefaultConstructor==NULL); check(Serializer==NULL); Object->Serialize( Ar ); } }
VisualMap& VisualMap::operator =(const VisualMap &map) { if(this != &map) { Destructor(); Copy(map); } return *this; }
std::shared_ptr<AsyncMcClientImpl> AsyncMcClientImpl::create( folly::EventBase& eventBase, ConnectionOptions options) { if (options.accessPoint.getProtocol() == mc_umbrella_protocol && options.noNetwork) { throw std::logic_error("No network mode is not supported for umbrella " "protocol yet!"); } auto client = std::shared_ptr<AsyncMcClientImpl>( new AsyncMcClientImpl(eventBase, std::move(options)), Destructor()); client->selfPtr_ = client; return client; }
void S626_CloseBoard( HBD hbd ) { // Abort if a valid board handle is not specified. if ( hbd >= MAX_BOARDS ) return; // Close the board if it is open. Destructor( hbd ); // including: Close the board at CORE level, using S626CORE_BoardClose( hbd ); // Close the board at CORE level too. S626CORE_CoreClose( hbd ); // Decrease counts of opening boards. open_boards --; }
std::shared_ptr<McServerSession> McServerSession::create( apache::thrift::async::TAsyncTransport::UniquePtr transport, std::shared_ptr<McServerOnRequest> cb, std::function<void(std::shared_ptr<McServerSession>)> onClosed, std::function<void()> onShutdown, AsyncMcServerWorker::Options options) { auto ptr = std::shared_ptr<McServerSession>( new McServerSession( std::move(transport), std::move(cb), std::move(onClosed), std::move(onShutdown), std::move(options) ), Destructor()); ptr->weakThis_ = std::weak_ptr<McServerSession>(ptr); return ptr; }
void DestructorFTP ( void ) { Destructor ( ); }
void DynamicObject::Remove() { if(IsInWorld()) RemoveFromWorld(true); Destructor(); }
//---------------------------------------------------------------------------- medGizmoInteractionDebugger::~medGizmoInteractionDebugger() //---------------------------------------------------------------------------- { Destructor(); }
GuiContainer::~GuiContainer() { Destructor(); }
NassiSwitchBrick::~NassiSwitchBrick() { Destructor(); }
VisualMap::~VisualMap() { Destructor(); }
void VisualMap::destroy() { Destructor(); }