diff options
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/basedefs.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 4ebb0fc5d9..7d9a36b0a7 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de> + + PR 1842/cpukit + * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT(). + 2011-07-19 Joel Sherrill <joel.sherrill@oarcorp.com> * score/include/rtems/score/chain.h: Fix typo. diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index 91774e4fec..086c9fd5c2 100644 --- a/cpukit/score/include/rtems/score/basedefs.h +++ b/cpukit/score/include/rtems/score/basedefs.h @@ -165,6 +165,9 @@ #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE #endif +#define RTEMS_STATIC_ASSERT(cond, msg) \ + typedef int rtems_static_assert ## msg [(cond) ? 1 : -1] + #ifndef ASM #ifdef RTEMS_DEPRECATED_TYPES typedef bool boolean; |