]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_hash/rte_cuckoo_hash.h
eal: improve option API documentation
[dpdk.git] / lib / librte_hash / rte_cuckoo_hash.h
index 5dfbbc48bbfeb043ed4a944c4cf4b27c0dfb7e96..eacdaa8d468493f050b05adad39ee543db5bdb5e 100644 (file)
 #define RETURN_IF_TRUE(cond, retval)
 #endif
 
+#if defined(RTE_LIBRTE_HASH_DEBUG)
+#define ERR_IF_TRUE(cond, fmt, args...) do { \
+       if (cond) { \
+               RTE_LOG(ERR, HASH, fmt, ##args); \
+               return; \
+       } \
+} while (0)
+#else
+#define ERR_IF_TRUE(cond, fmt, args...)
+#endif
+
 #include <rte_hash_crc.h>
 #include <rte_jhash.h>