mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES is enabled, always supply a name argument. Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set. This cleans up a lot of the conditional compilation switches that weren't being tested and would silently break, while still stripping the strings from the binary.
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// ======================================================================
|
|
// \title FatalHandlerImpl.cpp
|
|
// \author tcanham
|
|
// \brief cpp file for FatalHandler component implementation class
|
|
//
|
|
// \copyright
|
|
// Copyright 2009-2015, by the California Institute of Technology.
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
//
|
|
// ======================================================================
|
|
|
|
|
|
#include <Svc/FatalHandler/FatalHandlerComponentImpl.hpp>
|
|
#include "Fw/Types/BasicTypes.hpp"
|
|
|
|
namespace Svc {
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Construction, initialization, and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
FatalHandlerComponentImpl ::
|
|
FatalHandlerComponentImpl(
|
|
const char *const compName
|
|
) : FatalHandlerComponentBase(compName)
|
|
{
|
|
|
|
}
|
|
|
|
void FatalHandlerComponentImpl ::
|
|
init(
|
|
const NATIVE_INT_TYPE instance
|
|
)
|
|
{
|
|
FatalHandlerComponentBase::init(instance);
|
|
}
|
|
|
|
FatalHandlerComponentImpl ::
|
|
~FatalHandlerComponentImpl(void)
|
|
{
|
|
|
|
}
|
|
|
|
} // end namespace Svc
|