pub fn set_panic_hook() {
#[cfg(feature = "console_error_panic_hook")]
console_error_panic_hook::set_once();
}
#[cfg(target_arch = "wasm32")]
#[macro_export]
macro_rules! log {
( $( $t:tt )* ) => {
web_sys::console::log_1(&format!( $( $t )* ).into());
}
}
#[cfg(not(target_arch = "wasm32"))]
#[macro_export]
macro_rules! log {
( $( $t:tt )* ) => {
println!("LOG - {}", format!( $( $t )* ));
}
}