fsfw/unittests/CatchDefinitions.cpp
Robin Müller af7ebd3564
Some checks failed
fsfw/fsfw/pipeline/pr-development There was a failure building this commit
Merge branch 'development' into mueller/refactor-logging-with-fmt
2022-07-18 15:12:55 +02:00

19 lines
534 B
C++

#include "CatchDefinitions.h"
#include <fsfw/objectmanager/ObjectManager.h>
#include "fsfw/serviceinterface.h"
StorageManagerIF* tglob::getIpcStoreHandle() {
if (ObjectManager::instance() != nullptr) {
return ObjectManager::instance()->get<StorageManagerIF>(objects::IPC_STORE);
} else {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << "Global object manager uninitialized" << std::endl;
#else
FSFW_LOGE("Global object manager uninitialized\n");
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
return nullptr;
}
}