* Copyright 2018, Olivier MATZ <zer0@droids-corp.org>
*/
+/**
+ * @defgroup utils Utils
+ * @{
+ *
+ * @brief Misc utils
+ */
+
+
#ifndef ECOLI_UTILS_
#define ECOLI_UTILS_
(new_type)__x; \
})
+/**
+ * Mark the end of the arguments list in some functions.
+ */
+#define EC_VA_END ((void *)1)
+
+/**
+ * Count number of elements in an array.
+ */
+#define EC_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / \
+ ((size_t)(!(sizeof(x) % sizeof(0[x])))))
+
#endif
+
+/** @} */