Consolidate to single debug macro, activate using feature

This commit is contained in:
Brandon Fish
2019-01-28 20:06:57 -06:00
parent 7cf6fee998
commit 948e685dd6
4 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1 @@
macro_rules! debug {
($fmt:expr) => (if cfg!(any(debug_assertions, feature="debug")) { println!(concat!("wasmer-runtime(:{})::", $fmt), line!()) });
($fmt:expr, $($arg:tt)*) => (if cfg!(any(debug_assertions, feature="debug")) { println!(concat!("wasmer-runtime(:{})::", $fmt, "\n"), line!(), $($arg)*) });
}