# define D(x)
#endif
+/** Calculates the number of elements in an array */
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
#if defined(static_assert)
-/* C11 static_assert available */
+/** Static assertion as available in C11 standard */
#define STATIC_ASSERT(COND,MSG) static_assert(COND, #MSG)
#else
-/* Non-C11 fall-back */
+/** Static assertion - non-C11 fall-back */
#define STATIC_ASSERT(COND,MSG) typedef char static_assertion_##MSG[(COND)?1:-1]
#endif