mgba#
This module allows you to output text to the debug console in mGBA.
It is automatically initialised on import, so you don’t have to call open
manually.
- type LogLevel = enum#
- template printf(str: cstring, args: varargs[untyped])#
Output a formatted message to the mGBA log.
Example:
printf("Spawned item at %d, %d", pos.x, pos.y)
- template printf(level: LogLevel, str: cstring, args: varargs[untyped])#
Output a formatted message to the mGBA log, at a specified level of visibility.
Example:
printf(logFatal, "Uh oh, something went wrong!")
- proc open(): bool#
- proc close()#