bevy_wasm_sys 0.10.1

Import into your wasm scripts. Use with the bevy_wasm crate.
Documentation
//! Macros used for printing to the screen

/// Calls `bevy_log::info!` macro on the host
#[macro_export]
macro_rules! info {
    ($($arg:tt)+) => {{
        let string = format!($($arg)+);
        #[allow(unused_unsafe)]
        unsafe { $crate::ffi::console_info(string.as_ptr(), string.len()) };
    }};
}

/// Calls `bevy_log::warn!` macro on the host
#[macro_export]
macro_rules! warn {
    ($($arg:tt)+) => {{
        let string = format!($($arg)+);
        #[allow(unused_unsafe)]
        unsafe { $crate::ffi::console_warn(string.as_ptr(), string.len()) };
    }};
}

/// Calls `bevy_log::error!` macro on the host
#[macro_export]
macro_rules! error {
    ($($arg:tt)+) => {{
        let string = format!($($arg)+);
        #[allow(unused_unsafe)]
        unsafe { $crate::ffi::console_error(string.as_ptr(), string.len()) };
    }};
}