println

Macro println 

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

Prints to the GameBoy screen, with a newline. If you’ve ever used println! macro in std, you’ll familiar with this.

The println! macro will work with default GbStream. So, texts that written with your custom GbStream will removed.

§Warning

Since the compiled fmt function is very large, care must be taken not to exceed the ROM capacity of GameBoy.

In addition, compilation will fail if formatting is attempted for floating points and integers over 32bits. Attempts to use Debug trait ({:?}) will also fail.

§Examples

println!(); //prints just a newline
println!("Hello, Rust-GB!");
println!("Answer!: {}", 42);