summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/basedefs.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-07-21 12:00:20 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-07-21 12:00:20 +0000
commit51ab73b5d20f7ecccb6fdb3c53977fb6b47629a3 (patch)
tree6fcecb61fd71c2eb0adee78b6889aafb9059fecb /cpukit/score/include/rtems/score/basedefs.h
parent26605b27e9381ff1f33aa7cb09746620039f2864 (diff)
downloadrtems-51ab73b5d20f7ecccb6fdb3c53977fb6b47629a3.tar.bz2
2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1842/cpukit * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
Diffstat (limited to 'cpukit/score/include/rtems/score/basedefs.h')
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h3
1 files changed, 3 insertions, 0 deletions
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;