aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefix_println.rs
blob: d1a89491d9e86c9333e7c209763cabfd311da945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#[macro_export]
macro_rules! dkeprintln {
    () => (eprint!("\n"));
    ($($arg:tt)*) => {
        eprintln!(
            "dome-key: error: {}",
            format!($($arg)*),
        );
    }
}

#[cfg(test)]
mod tests {
    #[test]
    #[ignore]
    fn dkprintln_macro() {
        dkeprintln!();
        dkeprintln!("test");
        dkeprintln!("multiple arguments {}, {}", 5, 50 / 2);
    }
}