Files @ 498f455c82ce
Branch filter:

Location: CSY/reowolf/src/macros.rs

498f455c82ce 463 B application/rls-services+xml Show Annotation Show as Raw Download as Raw
MH
removed more AST/heap indexing cruft
/*
Change the definition of these macros to control the logging level statically
*/

macro_rules! log {
    (@ENDPT, $logger:expr, $($arg:tt)*) => {{
        // if let Some(w) = $logger.line_writer() {
        //     let _ = writeln!(w, $($arg)*);
        // }
    }};
    ($logger:expr, $($arg:tt)*) => {{
        #[cfg(not(feature = "no_logging"))]
        if let Some(w) = $logger.line_writer() {
            let _ = writeln!(w, $($arg)*);
        }
    }};
}