]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: macro debug_validate_fail to fail with message
authorJason Ish <jason.ish@oisf.net>
Mon, 29 Jun 2020 17:09:16 +0000 (11:09 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Jun 2020 18:10:46 +0000 (20:10 +0200)
commitca6b70ea1b9383df1367bdddfc86ddb0380ff7a9
tree79a69d4d233874a6ed07ea6453aa3567b8e86a39
parent4127c5fcc8d6e8522cb3432a1d0bf2d2959cab1e
rust: macro debug_validate_fail to fail with message

Add a new debug_validate macro that unconditionally panics
with a message. Useful in Rust pattern matching.
rust/src/common.rs