fix: disable macro logs in wasm
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m47s
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m47s
This commit is contained in:
@@ -11,7 +11,7 @@ extern "C" {
|
|||||||
pub fn host_log(ptr: *const u8, len: usize);
|
pub fn host_log(ptr: *const u8, len: usize);
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! log {
|
macro_rules! log {
|
||||||
($($t:tt)*) => {{
|
($($t:tt)*) => {{
|
||||||
@@ -25,13 +25,13 @@ macro_rules! log {
|
|||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
// #[macro_export]
|
#[macro_export]
|
||||||
// macro_rules! log {
|
macro_rules! log {
|
||||||
// ($($arg:tt)*) => {{
|
($($arg:tt)*) => {{
|
||||||
// // This will expand to nothing in release builds
|
// This will expand to nothing in release builds
|
||||||
// }};
|
}};
|
||||||
// }
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
|
|||||||
Reference in New Issue
Block a user