X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-lib.git/blobdiff_plain/2a519697515512072c493b504b5f950b078fb13e..1d46b176502a6b41bfc87bb293e13d3fd6d7d7b4:/rpp/include/base.h diff --git a/rpp/include/base.h b/rpp/include/base.h index 38d401b..d336374 100644 --- a/rpp/include/base.h +++ b/rpp/include/base.h @@ -44,13 +44,14 @@ # 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