Macro solana_program::msg[][src]

macro_rules! msg {
    ($msg:expr) => { ... };
    ($arg1:expr, $arg2:expr, $arg3:expr, $arg4:expr, $arg5:expr) => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

Print a message to the log

There are two fast forms:

  1. Single string: msg!("hi")
  2. 5 integers: msg!(1, 2, 3, 4, 5)

The third form is more generic and incurs a very large runtime overhead so it should be used with care: 3. Generalized format string: msg!("Hello {}: 1, 2, {}", "World", 3)