macro_rules! msg {
( $literal:expr ) => { ... };
( $fmt:expr, $($arg:tt)* ) => { ... };
}Expand description
Convenience macro for logging. Equivalent to hopper_native::log::log(msg).
Usage: msg!("Hello, {}", name);
On BPF, this formats into a 256-byte stack buffer and calls
sol_log_. A longer message is cut at the last whole character
that fits.
For simple string literals, prefer hopper_native::log::log("...") directly.