blob: 50dea35b7f50ae30afa8b8821c38b2e0f29258a7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 fortiss GmbH
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jose Cabral - initial API and implementation and/or initial documentation
*******************************************************************************/
#include "../forte_architecture.h"
#include "forteinit.h"
extern "C" void abort(int ) { while(1) ; }
void *__dso_handle = 0;
extern "C" int _getpid(void) {
return 1;
}
extern "C" void _kill(int ) { while(1) ; }
bool CForteArchitecture::mInitialized = false;
bool CForteArchitecture::initialize(){
if (!mInitialized){
initForte();
mInitialized = true;
}
return true;
}
void CForteArchitecture::deinitialize(){
if(mInitialized){
mInitialized = false;
}
}