[][src]Macro chek::debug_ge

macro_rules! debug_ge {
    ($left:expr, $right:expr $(,)?) => { ... };
    ($left:expr, $right:expr, $($msg_args:tt)+) => { ... };
}

Same as chek::ge! in debug builds or release builds where the -C debug-assertions was provided to the compiler. For all other builds, vanishes without a trace.

Optionally may take an additional message to display on failure, which is formatted using standard format syntax.

Example

// These are compiled to nothing if debug_assertions are off!
chek::debug_ge!(4, 3);
chek::debug_ge!(4, 4);
chek::debug_ge!(4, 3, "With a message");
chek::debug_ge!(4, 3, "With a formatted message: {}", "oh no");