]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/include/base.h
doc: Get rid of doxygen warnings about missing documentation
[pes-rpp/rpp-lib.git] / rpp / include / base.h
index 38d401b49077981690ea628c4bf7f0b9fa7f351f..d3363744b04b184be3e6f3c861b93b5ed3b1b1e0 100644 (file)
 #  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