[PATCH] score: Add _Assert_Not_reached()

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 18 12:23:57 UTC 2014


---
 cpukit/score/include/rtems/score/assert.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/cpukit/score/include/rtems/score/assert.h b/cpukit/score/include/rtems/score/assert.h
index be04d87..00ded6b 100644
--- a/cpukit/score/include/rtems/score/assert.h
+++ b/cpukit/score/include/rtems/score/assert.h
@@ -67,6 +67,11 @@ extern "C" {
   bool _Debug_Is_owner_of_allocator( void );
 #endif
 
+/**
+ * @brief Asserts that this point is not reached during run-time.
+ */
+#define _Assert_Not_reached() _Assert( 0 )
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
-- 
1.7.7




More information about the devel mailing list