Macro more_asserts::debug_assert_le
source · [−]macro_rules! debug_assert_le {
($($arg:tt)+) => { ... };
}
Expand description
Same as assert_le!
in builds with debug assertions enabled, and a no-op
otherwise.
Example
use more_asserts as ma;
// These are compiled to nothing if debug_assertions are off!
ma::debug_assert_le!(4, 4);
ma::debug_assert_le!(4, 5);
ma::debug_assert_le!(4, 5, "With a message");
ma::debug_assert_le!(4, 4, "With a formatted message: {}", "oh no");