pd-rs / crankstart

A barely functional, wildly incomplete and basically undocumented Rust crate whose aim is to let you write Games for the Playdate handheld gaming system in Rust.
MIT License
235 stars 24 forks source link

Add bindings for playdate->system->error #29

Closed paulyoung closed 1 year ago

paulyoung commented 1 year ago

Adds bindings for void playdate->system->error(const char* format, ...)

Calls the log function, outputting an error in red to the console, then pauses execution.

log_to_console_raw already existed so I also implemented error_raw.