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

Go to the source code of this file.

Namespaces

 Fw
 Implementation of malloc based allocator.
 

Macros

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

Functions

void Fw::defaultPrintAssert (const CHAR *msg)
 
void Fw::defaultReportAssert (FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, FwSizeType buffSize)
 
FW_ASSERT_NORETURN void Fw::defaultSwAssert (FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
 
void Fw::SwAssert (FILE_NAME_ARG file, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with no arguments. More...
 
void Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with one argument. More...
 
void Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with two arguments. More...
 
void Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with three arguments. More...
 
void Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with four arguments. More...
 
void Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with five arguments. More...
 
void Fw::SwAssert (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, FwSizeType lineNo) NOINLINE FW_ASSERT_NORETURN
 Assert with six arguments. More...
 
I8 CAssert0 (FILE_NAME_ARG file, FwSizeType lineNo)
 
I8 CAssert1 (FILE_NAME_ARG file, FwAssertArgType arg1, FwSizeType lineNo)
 
I8 CAssert2 (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwSizeType lineNo)
 
I8 CAssert3 (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwSizeType lineNo)
 
I8 CAssert4 (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwSizeType lineNo)
 
I8 CAssert5 (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwSizeType lineNo)
 
I8 CAssert6 (FILE_NAME_ARG file, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, FwSizeType lineNo)
 

Macro Definition Documentation

◆ fileIdFs

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

Definition at line 10 of file Assert.cpp.

Function Documentation

◆ CAssert0()

I8 CAssert0 ( FILE_NAME_ARG  file,
FwSizeType  lineNo 
)

Definition at line 214 of file Assert.cpp.

◆ CAssert1()

I8 CAssert1 ( FILE_NAME_ARG  file,
FwAssertArgType  arg1,
FwSizeType  lineNo 
)

Definition at line 227 of file Assert.cpp.

◆ CAssert2()

I8 CAssert2 ( FILE_NAME_ARG  file,
FwAssertArgType  arg1,
FwAssertArgType  arg2,
FwSizeType  lineNo 
)

Definition at line 240 of file Assert.cpp.

◆ CAssert3()

I8 CAssert3 ( FILE_NAME_ARG  file,
FwAssertArgType  arg1,
FwAssertArgType  arg2,
FwAssertArgType  arg3,
FwSizeType  lineNo 
)

Definition at line 253 of file Assert.cpp.

◆ CAssert4()

I8 CAssert4 ( FILE_NAME_ARG  file,
FwAssertArgType  arg1,
FwAssertArgType  arg2,
FwAssertArgType  arg3,
FwAssertArgType  arg4,
FwSizeType  lineNo 
)

Definition at line 266 of file Assert.cpp.

◆ CAssert5()

I8 CAssert5 ( FILE_NAME_ARG  file,
FwAssertArgType  arg1,
FwAssertArgType  arg2,
FwAssertArgType  arg3,
FwAssertArgType  arg4,
FwAssertArgType  arg5,
FwSizeType  lineNo 
)

Definition at line 284 of file Assert.cpp.

◆ CAssert6()

I8 CAssert6 ( FILE_NAME_ARG  file,
FwAssertArgType  arg1,
FwAssertArgType  arg2,
FwAssertArgType  arg3,
FwAssertArgType  arg4,
FwAssertArgType  arg5,
FwAssertArgType  arg6,
FwSizeType  lineNo 
)

Definition at line 303 of file Assert.cpp.