Macro glib::g_printerr

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

Macro used to print error messages. It uses g_printerr.

Example:

use glib::g_printerr;

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

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