F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Assert.cpp File Reference
#include <FpConfig.hpp>
#include <Fw/Types/Assert.hpp>
#include <cassert>
#include <cstdio>

Go to the source code of this file.

Namespaces

 Fw
 

Macros

#define fileIdFs   "Assert: 0x%08" PRIx32 ":%" PRI_PlatformUIntType
 

Functions

void Fw::defaultPrintAssert (const CHAR *msg)
 
void Fw::defaultReportAssert (FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo, NATIVE_UINT_TYPE numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, NATIVE_INT_TYPE buffSize)
 
NATIVE_INT_TYPE Fw::defaultSwAssert (FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo, NATIVE_UINT_TYPE numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with no arguments. More...
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with one argument. More...
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with two arguments. More...
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with three arguments. More...
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with four arguments. More...
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with five arguments. More...
 
NATIVE_INT_TYPE Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, NATIVE_UINT_TYPE lineNo) CLANG_ANALYZER_NORETURN
 Assert with six arguments. More...
 
NATIVE_INT_TYPE CAssert0 (FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo)
 

Variables

STATIC AssertHook * Fw::s_assertHook = nullptr
 

Macro Definition Documentation

◆ fileIdFs

#define fileIdFs   "Assert: 0x%08" PRIx32 ":%" PRI_PlatformUIntType

Definition at line 7 of file Assert.cpp.

Function Documentation

◆ CAssert0()

NATIVE_INT_TYPE CAssert0 ( FILE_NAME_ARG  file,
NATIVE_UINT_TYPE  lineNo 
)

Definition at line 183 of file Assert.cpp.