The repository includes a basic logger, that works with emulators such as MelonDS and No$GBA.
To enable it, compile with make debug
(or the logging_enabled
meson option).
Wherever you want to log something, just include the debug.h
file, and call the EmulatorLog
function.
#include "debug.h"
void someFunction(){
EmulatorLog("This will get printed on your emulator's standard output");
int aNumber = 5;
EmulatorLog("The function works just like printf, here's an integer : %d",aNumber);
}
[GAME_LOG]
to the front and a newline at the end.