Macro console_println

Source
macro_rules! console_println {
    () => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

Prints to the in-game console log (Skyrim) with a newline.

This is analogous to println!, but targets the Skyrim in-game console log instead of stdout.

§Examples

use commonlibsse_ng::console_println;

console_println!("Level up! You are now level {}", 42);
console_println!(); // just a newline

§Allocate Heap Memory

This uses the [Write] trait internally, and since str is a [CString], heap allocation occurs each time it is used.

If the string is fixed at compile time, it is better to use c"" and ConsoleLog::print method to save memory and speed up the process.