mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-06 07:42:14 +00:00
6 lines
332 B
Rust
6 lines
332 B
Rust
#[macro_export]
|
|
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)*) });
|
|
}
|