1 2 3 4 5 6 7 8 9
#[macro_export] macro_rules! debug { ($fmt:literal) => { ckb_contract_std::syscalls::debug(alloc::format!($fmt)); }; ($fmt:literal, $($args:expr),+) => { ckb_contract_std::syscalls::debug(alloc::format!($fmt, $($args), +)); }; }
1 2 3 4 5 6 7 8 9
#[macro_export] macro_rules! debug { ($fmt:literal) => { ckb_contract_std::syscalls::debug(alloc::format!($fmt)); }; ($fmt:literal, $($args:expr),+) => { ckb_contract_std::syscalls::debug(alloc::format!($fmt, $($args), +)); }; }