api documentation for ec_parse
[protos/libecoli.git] / include / ecoli_utils.h
index 98bfcc9..7d6afcb 100644 (file)
        (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
 
 /** @} */