Macro solana_sdk::msg [−][src]
macro_rules! msg {
($msg : expr) => { ... };
($($arg : tt) *) => { ... };
}
Expand description
Print a message to the log
Fast form:
- Single string:
msg!("hi")
The generic form incurs a very large runtime overhead so it should be used with care:
3. Generalized format string: msg!("Hello {}: 1, 2, {}", "World", 3)