Function mgba_log::init

source ·
pub fn init() -> Result<(), Error>
Expand description

Initialize mGBA logging.

This function takes control of mGBA’s memory mapped debug IO registers. Any data previously stored in the debug buffer will be completely overwritten by calls to the log macros.

Errors

This function returns Ok(()) if the logger was enabled. If the logger was not enabled for any reason, it instead returns an Error. See the documentation for Error for what errors can occur.