extra 0.1.0

Extra stuff the standard library lacks of.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Write to console if debug_logging is activated (with newline).
#[macro_export]
macro_rules! debugln {
    ($fmt:expr) => (debug!(concat!($fmt, "\n")));
    ($fmt:expr, $($arg:tt)*) => (debug!(concat!($fmt, "\n"), $($arg)*));
}

/// Write to console if debug_logging is activated (without newline).
#[macro_export]
macro_rules! debug {
    ($($arg:tt)*) => {
        #[cfg(feature = "debug_logging")]
        print!($($arg)*);
    };
}