pt_tracing 0.0.0-alpha.4

A library for Rust-Based Pt Logging
// File: rust_pt\pt_tracing\src\macros.rs
// Directory: rust_pt\pt_tracing\src
// Filename: macros.rs
//======================================================================

/// use `PtTracing::error($msg)` to record and then panic
/// Will generate:
/// <$`crate::PtTracing` as $`crate::traits::TorPtCommunicator>::error($msg).unwrap()`;
/// panic!("{}", $msg);
#[macro_export]
macro_rules! rec_panic {
    ($msg:expr) => {
        #[allow(unwrap_used)]
        {
            <$crate::PtTracing as $crate::traits::TorPtCommunicator>::error($msg).unwrap();
            panic!("{}", $msg);
        }
    };
}