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 + + PR 1842/cpukit + * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT(). + 2011-07-19 Joel Sherrill * 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;