Macro std_tools::dependencies::diagnostics_tools::diagnostics::prelude::a_true
source · [−]macro_rules! a_true {
() => { ... };
(
$( $Rest : tt )*
) => { ... };
}
Expand description
Asserts that a boolean expression is true at runtime.
This will invoke the panic! macro if the provided expression cannot be evaluated to true at runtime.
Sample
use diagnostics_tools::prelude::*;
a_true!( 1 == 1, "something wrong" );