6 #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT
7 #define fileIdFs "Assert: 0x%08" PRIx32 ":%" PRI_PlatformUIntType
9 #define fileIdFs "Assert: \"%s:%" PRI_PlatformUIntType "\""
15 (void)fprintf(stderr,
"%s\n", msg);
31 (void)snprintf(destBuffer,
static_cast<size_t>(buffSize),
fileIdFs, file, lineNo);
41 (void)snprintf(destBuffer,
static_cast<size_t>(buffSize),
43 lineNo, arg1, arg2, arg3);
46 (void)snprintf(destBuffer,
static_cast<size_t>(buffSize),
49 file, lineNo, arg1, arg2, arg3, arg4);
52 (void)snprintf(destBuffer,
static_cast<size_t>(buffSize),
55 file, lineNo, arg1, arg2, arg3, arg4, arg5);
58 (void)snprintf(destBuffer,
static_cast<size_t>(buffSize),
61 file, lineNo, arg1, arg2, arg3, arg4, arg5, arg6);
68 destBuffer[buffSize - 1] = 0;
85 defaultReportAssert(file, lineNo, numArgs, arg1, arg2, arg3, arg4, arg5, arg6, destBuffer,
sizeof(destBuffer));
117 defaultReportAssert(file, lineNo, numArgs, arg1, arg2, arg3, arg4, arg5, arg6, assertMsg,
sizeof(assertMsg));
163 return defaultSwAssert(file, lineNo, 5, arg1, arg2, arg3, arg4, arg5, 0);
174 return defaultSwAssert(file, lineNo, 6, arg1, arg2, arg3, arg4, arg5, arg6);
186 Fw::defaultReportAssert(file, lineNo, 0, 0, 0, 0, 0, 0, 0, assertMsg,
sizeof(assertMsg));
NATIVE_INT_TYPE CAssert0(FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo)
#define STATIC
static for non unit-test code
PlatformIntType NATIVE_INT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
PlatformAssertArgType FwAssertArgType
#define PRI_FwAssertArgType
C++-compatible configuration header for fprime configuration.
#define FW_ASSERT_TEXT_SIZE
Size of string used to store assert description.
virtual void reportAssert(FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo, NATIVE_UINT_TYPE numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
destructor
virtual void printAssert(const CHAR *msg)
NATIVE_INT_TYPE SwAssert(FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo)
Assert with no arguments.
void defaultPrintAssert(const CHAR *msg)
NATIVE_INT_TYPE 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)
STATIC AssertHook * s_assertHook
void 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)