[rtems commit] score: Add _Assert_Not_reached()

Sebastian Huber sebh at rtems.org
Wed Mar 19 07:31:16 UTC 2014


Module:    rtems
Branch:    master
Commit:    f31311aa67eb7b4f1888614b049b2ecf4ff1da3e
Changeset: http://git.rtems.org/rtems/commit/?id=f31311aa67eb7b4f1888614b049b2ecf4ff1da3e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 18 13:22:54 2014 +0100

score: Add _Assert_Not_reached()

---

 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 */




More information about the vc mailing list