Macro hexchat_api::hc_print
source · macro_rules! hc_print { ( ctx = ($network:expr, $channel:expr), $( $arg:tt )* ) => { ... }; ( $( $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!(hc, "<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);
hc_print!(ctx=(network, channel), argv, ...);
hc_print!(ctx=(network, channel), arg);Arguments
ctx=(network, channel)- Sets the context to print in.fmt- The format string.argv- The varibale length formatted arguments.