mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 15:43:15 +00:00
2001-11-07 Joel Sherrill <joel@OARcorp.com>
Tracked as PR72 but related to the object id problem (PR36) reported by Todor.Todorov@barco.com. * include/tmacros.h: Added fatal_directive_check_status_only().
This commit is contained in:
@@ -62,9 +62,8 @@ extern "C" {
|
|||||||
#define fatal_directive_status( _stat, _desired, _msg ) \
|
#define fatal_directive_status( _stat, _desired, _msg ) \
|
||||||
fatal_directive_status_with_level( _stat, _desired, _msg, 0 )
|
fatal_directive_status_with_level( _stat, _desired, _msg, 0 )
|
||||||
|
|
||||||
#define fatal_directive_status_with_level( _stat, _desired, _msg, _level ) \
|
#define fatal_directive_check_status_only( _stat, _desired, _msg ) \
|
||||||
do { \
|
do { \
|
||||||
check_dispatch_disable_level( _level ); \
|
|
||||||
if ( (_stat) != (_desired) ) { \
|
if ( (_stat) != (_desired) ) { \
|
||||||
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
|
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
|
||||||
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
|
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
|
||||||
@@ -73,6 +72,12 @@ extern "C" {
|
|||||||
} \
|
} \
|
||||||
} while ( 0 )
|
} while ( 0 )
|
||||||
|
|
||||||
|
#define fatal_directive_status_with_level( _stat, _desired, _msg, _level ) \
|
||||||
|
do { \
|
||||||
|
check_dispatch_disable_level( _level ); \
|
||||||
|
fatal_directive_check_status_only( _stat, _desired, _msg ); \
|
||||||
|
} while ( 0 )
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These macros properly report errors from the POSIX API
|
* These macros properly report errors from the POSIX API
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user