43 #define rte_panic(...) rte_panic_(__func__, __VA_ARGS__, "dummy")
44 #define rte_panic_(func, format, ...) __rte_panic(func, format "%.0s", __VA_ARGS__)
46 #ifdef RTE_ENABLE_ASSERT
47 #define RTE_ASSERT(exp) RTE_VERIFY(exp)
55 #define RTE_ASSERT(exp) do { \
56 (void)sizeof((exp) ? 1 : 0); \
60 #define RTE_VERIFY(exp) do { \
61 if (unlikely(!(exp))) \
62 rte_panic("line %d\tassert \"%s\" failed\n", __LINE__, #exp); \
71 void __rte_panic(
const char *funcname ,
const char *format, ...)
#define __rte_format_printf(format_index, first_arg)
void rte_dump_stack(void)