aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/src/util-validate.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/suricata/src/util-validate.h')
-rw-r--r--framework/src/suricata/src/util-validate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/src/suricata/src/util-validate.h b/framework/src/suricata/src/util-validate.h
index b5c3da26..b7647a7d 100644
--- a/framework/src/suricata/src/util-validate.h
+++ b/framework/src/suricata/src/util-validate.h
@@ -96,11 +96,14 @@
} \
} while(0)
+#define DEBUG_VALIDATE_BUG_ON(exp) BUG_ON((exp))
+
#else /* DEBUG_VALIDATE */
#define DEBUG_ASSERT_FLOW_LOCKED(f)
#define DEBUG_VALIDATE_FLOW(f)
#define DEBUG_VALIDATE_PACKET(p)
+#define DEBUG_VALIDATE_BUG_ON(exp)
#endif /* DEBUG_VALIDATE */