Macro hexchat_api::hc_print

source ·
macro_rules! hc_print {
    ( $( $arg:tt )* ) => { ... };
}
Expand description

Reduces the syntax required to output formatted text to the current hexchat window. Internally it invokes hexchat.print(&format!("<format-string>", arg1, arg2, ...). Using the macro, this becomes hc_print!("<format_string>", arg1, arg2, ...). To print from another thread hc_print_th!() can be used.

use hexchat_api::hc_print;
hc_print!(fmt, argv, ...);
hc_print!(arg);