forked from Imagelibrary/rtems
score: Add RTEMS_FATAL_SOURCE_ASSERT
This commit is contained in:
@@ -34,7 +34,7 @@ void __assert_func(
|
||||
(func) ? ", function: " : "",
|
||||
(func) ? func : ""
|
||||
);
|
||||
rtems_fatal_error_occurred(0);
|
||||
rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) func );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -83,6 +83,13 @@ typedef enum {
|
||||
*/
|
||||
RTEMS_FATAL_SOURCE_BSP_SPECIFIC,
|
||||
|
||||
/**
|
||||
* @brief Fatal source of assert().
|
||||
*
|
||||
* The fatal code is the pointer value of the function string.
|
||||
*/
|
||||
RTEMS_FATAL_SOURCE_ASSERT,
|
||||
|
||||
/**
|
||||
* @brief The last available fatal source.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user