1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(not(all(target_family = "wasm", not(target_os = "wasi"))))]
#[path = "./console/desktop_console.rs"]
pub mod console_util;

#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
#[path = "./console/web_console.rs"]
pub mod console_util;

///Platform specific implementations are here.
pub use console_util::*;


#[macro_export]
macro_rules! console_log {
    // Note that this is using the `log` function imported above during
    // `bare_bones`
    ($($t:tt)*) => (console_write(&format_args!($($t)*).to_string()))
}