pt_tracing 0.0.0-alpha.2

A library for Rust-Based Pt Logging
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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);
    };
}