37#ifndef _RTEMS_SCORE_ASSERT_H
38#define _RTEMS_SCORE_ASSERT_H
52#if defined( RTEMS_DEBUG )
64#if defined( RTEMS_DEBUG ) || defined( RTEMS_STATIC_ANALYSIS )
73 #ifndef __RTEMS_ASSERT_FUNCTION
74 #define __RTEMS_ASSERT_FUNCTION RTEMS_FUNCTION_NAME
77 #if !defined( RTEMS_SCHEDSIM )
80 #define _Assert( _e ) \
83 __assert_func( __FILE__, __LINE__, __RTEMS_ASSERT_FUNCTION, #_e ) )
85 #elif defined(__linux__)
87 #define _Assert( _e ) \
90 __assert_fail( #_e, __FILE__, __LINE__, __RTEMS_ASSERT_FUNCTION ) )
92 #error "Implement RTEMS assert support for this C Library"
96 #define _Assert( _e ) ( ( void ) 0 )
108#define _Assert_Unused_variable_equals(_var,_val) \
110 _Assert((_var) == (_val)); \
123#define _Assert_Unused_variable_unequal(_var,_val) \
125 _Assert((_var) != (_val)); \
135#if defined( RTEMS_DEBUG )
136 bool _Debug_Is_thread_dispatching_allowed(
void );
This header file provides the interfaces of the Assert Handler.
This header file provides basic definitions used by the API and the implementation.