Macro more_asserts::debug_assert_ge
source · [−]macro_rules! debug_assert_ge {
($($arg:tt)+) => { ... };
}
Expand description
Same as assert_ge!
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_ge!(4, 4);
ma::debug_assert_ge!(4, 3);
ma::debug_assert_ge!(4, 3, "With a message");
ma::debug_assert_ge!(4, 4, "With a formatted message: {}", "oh no");