Macro assert_cmp::debug_assert_op
source · macro_rules! debug_assert_op {
($left:ident $op:tt $right:ident) => { ... };
($left:ident $op:tt $right:literal) => { ... };
($left:literal $op:tt $right:ident) => { ... };
($left:literal $op:tt $right:literal) => { ... };
}
Expand description
Assert that a binary expression of 2 identifiers/literals returns true
.
This macro is the debug-only version of assert_op
.
It acts like assert_op
in debug mode, but does nothing in release mode.