logo
macro_rules! a_dbg_id {
    (
      $( $arg:tt )*
    ) => { ... };
}
Expand description

Asserts that two expressions are identical to each other.

This will invoke the panic! macro if two experessions have different values 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_id!( 1, 1, "something wrong" );