23 #ifndef _RTEMS_SCORE_ASSERT_H 24 #define _RTEMS_SCORE_ASSERT_H 38 #if defined( RTEMS_DEBUG ) 50 #if defined( RTEMS_DEBUG ) 59 #ifndef __RTEMS_ASSERT_FUNCTION 61 #if defined __cplusplus && defined __GNUC__ 62 #define __RTEMS_ASSERT_FUNCTION __PRETTY_FUNCTION__ 65 #elif __STDC_VERSION__ >= 199901L 66 #define __RTEMS_ASSERT_FUNCTION __func__ 70 #define __RTEMS_ASSERT_FUNCTION __FUNCTION__ 74 #define __RTEMS_ASSERT_FUNCTION ((char *) 0) 78 #if !defined( RTEMS_SCHEDSIM ) 81 void __assert_func(
const char *,
int,
const char *,
const char *)
84 #define _Assert( _e ) \ 87 __assert_func( __FILE__, __LINE__, __RTEMS_ASSERT_FUNCTION, #_e ) ) 89 #elif defined(__linux__) 91 #define _Assert( _e ) \ 94 __assert_fail( #_e, __FILE__, __LINE__, __RTEMS_ASSERT_FUNCTION ) ) 96 #error "Implement RTEMS assert support for this C Library" 100 #define _Assert( _e ) ( ( void ) 0 ) 106 #if defined( RTEMS_SMP ) 107 #define _SMP_Assert( _e ) _Assert( _e ) 109 #define _SMP_Assert( _e ) ( ( void ) 0 ) 118 #if defined( RTEMS_DEBUG ) 119 bool _Debug_Is_thread_dispatching_allowed(
void );
#define RTEMS_NO_RETURN
Definition: basedefs.h:102
Information for the Assert Handler.