F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
assert_hook.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title assert_hook.hpp
3 // \author Andrei Tumbar
4 // \brief link-time selected default assert handling functions (Fw_AssertHook implementations)
5 //
6 // \copyright
7 // Copyright (C) 2025 California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 // ======================================================================
11 #ifndef FW_TYPES_ASSERT_HOOK_HPP_
12 #define FW_TYPES_ASSERT_HOOK_HPP_
13 #include <Fw/FPrimeBasicTypes.hpp>
14 #include <Fw/Types/Assert.hpp>
15 
16 namespace Fw {
17 
37  FwSizeType lineNo,
38  FwSizeType numArgs,
39  FwAssertArgType arg1,
40  FwAssertArgType arg2,
41  FwAssertArgType arg3,
42  FwAssertArgType arg4,
43  FwAssertArgType arg5,
44  FwAssertArgType arg6,
45  CHAR* destBuffer,
46  FwSizeType buffSize);
47 
54 void printAssertMessage(const CHAR* msg);
55 
62 void terminateOnAssert();
63 
64 } // namespace Fw
65 #endif // FW_TYPES_ASSERT_HOOK_HPP_
void formatAssertMessage(FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, FwSizeType buffSize)
format an assert message
PlatformSizeType FwSizeType
char CHAR
Definition: BasicTypes.h:60
#define FILE_NAME_ARG
Definition: Assert.hpp:16
void printAssertMessage(const CHAR *msg)
print an assert message
Implementation of malloc based allocator.
void terminateOnAssert()
terminate after a failed assertion
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.