overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
638 stars 33 forks source link

Improve dprint!/dprintln! ergonomics #123

Closed MaxVerevkin closed 2 years ago

MaxVerevkin commented 2 years ago

Before this code would not compile:

match std::env::current_dir() {
    Ok(cwd) => psp::dprintln!("cwd: {}", cwd.display()),
    Err(err) => psp::dprintln!("cwd error: {}", err),
}
overdrivenpotato commented 2 years ago

Thanks!