Macro glib::g_print[][src]

macro_rules! g_print {
    ($format:expr, $($arg:expr),* $(,)?) => { ... };
    ($format:expr $(,)?) => { ... };
}
Expand description

Macro used to print messages. It uses g_print.

Example:

use glib::g_print;

g_print!("test");
// trailing commas work as well:
g_print!("test",);

let x = 12;
g_print!("test: {}", x);
g_print!("test: {} {}", x, "a");
// trailing commas work as well:
g_print!("test: {} {}", x, "a",);