Macro non_std::dependencies::diagnostics_tools::prelude::a_dbg_not_id
source · [−]macro_rules! a_dbg_not_id {
(
$( $arg:tt )*
) => { ... };
}
Expand description
Asserts that two expressions are not identical to each other.
This will invoke the panic! macro if two experessions have the same value at runtime. Like [a_id!], this macro also has a second version, where a custom panic message can be provided.
Sample
use diagnostics_tools::prelude::*;
a_dbg_not_id!( 1, 2, "something wrong" );