fix log macros
This commit is contained in:
parent
4aad6f3fdf
commit
afa9326c81
@ -38,19 +38,19 @@ cfg_if! {
|
||||
}
|
||||
} else {
|
||||
macro_rules! log {
|
||||
($($t:tt)*) => (println!("{}", &format_args!($($t)*).to_string()))
|
||||
($($t:tt)*) => (println!($($t)*))
|
||||
}
|
||||
|
||||
macro_rules! elog {
|
||||
($($t:tt)*) => (println!("{}", &format_args!($($t)*).to_string()))
|
||||
($($t:tt)*) => (eprintln!($($t)*))
|
||||
}
|
||||
|
||||
macro_rules! log_verbose {
|
||||
($($t:tt)*) => (if $crate::verbose_flag() { println!("{}", &format_args!($($t)*).to_string()) })
|
||||
($($t:tt)*) => (if $crate::verbose_flag() { println!($($t)*) })
|
||||
}
|
||||
|
||||
macro_rules! elog_verbose {
|
||||
($($t:tt)*) => (if $crate::verbose_flag() { println!("{}", &format_args!($($t)*).to_string()) })
|
||||
($($t:tt)*) => (if $crate::verbose_flag() { eprintln!($($t)*) })
|
||||
}
|
||||
|
||||
pub struct Stopwatch {
|
||||
|
Loading…
Reference in New Issue
Block a user