debug/
lib.rs

1#![deny(missing_docs, warnings)]
2
3//! `println!()` in debug builds, noop in release.
4
5#[macro_export]
6/// `println!()` in debug builds, noop in release.
7macro_rules! debugln {
8    () => { debugln!("(DEBUG)") };
9    ($fmt:expr) => {
10        if cfg!(ndebug) {
11        } else {
12            println!($fmt);
13        }
14    };
15    ($fmt:expr, $($arg:tt)*) => {
16        if cfg!(ndebug) {
17        } else {
18            println!($fmt, $($arg)*);
19        }
20    };
21}
22