]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_debug.h
xen: core library changes
[dpdk.git] / lib / librte_eal / common / include / rte_debug.h
index 675378e13890a75c18d658537d69881a80129e9b..e234e2ffe688b6d8f64e6a4868d295879961865a 100644 (file)
@@ -78,6 +78,11 @@ void rte_dump_registers(void);
 #define rte_panic_(func, format, ...) __rte_panic(func, format "%.0s", __VA_ARGS__)
 #define rte_panic(...) rte_panic_(__func__, __VA_ARGS__, "dummy")
 
+#define        RTE_VERIFY(exp) do {                                                  \
+       if (!(exp))                                                           \
+               rte_panic("line %d\tassert \"" #exp "\" failed\n", __LINE__); \
+} while (0)
+
 /*
  * Provide notification of a critical non-recoverable error and stop.
  *