more_asserts

Macro 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");