mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 14:25:32 +00:00
Remove debug statements on release
This commit is contained in:
parent
cf22c6f1b1
commit
ad562ddc35
@ -24,16 +24,16 @@ macro_rules! include_wast2wasm_bytes {
|
||||
}};
|
||||
}
|
||||
|
||||
// #[cfg(feature= "debug")]
|
||||
#[cfg(debug_assertions)]
|
||||
#[macro_export]
|
||||
macro_rules! debug {
|
||||
($fmt:expr) => (println!(concat!("Wasmer::", $fmt)));
|
||||
($fmt:expr, $($arg:tt)*) => (println!(concat!("Wasmer::", $fmt, "\n"), $($arg)*));
|
||||
}
|
||||
|
||||
// #[cfg(not(feature= "debug"))]
|
||||
// #[macro_export]
|
||||
// macro_rules! debug {
|
||||
// ($fmt:expr) => {};
|
||||
// ($fmt:expr, $($arg:tt)*) => {};
|
||||
// }
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[macro_export]
|
||||
macro_rules! debug {
|
||||
($fmt:expr) => {};
|
||||
($fmt:expr, $($arg:tt)*) => {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user