Macro non_std::dependencies::diagnostics_tools::diagnostics::protected::a_dbg_true
source · [−]macro_rules! a_dbg_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. Like a_true!, this macro also has a second version, where a custom panic message can be provided.
Sample
use diagnostics_tools::prelude::*;
a_dbg_true!( 1 == 1, "something wrong" );