]>
git.bts.cx Git - benzene.git/blob - src_platform/playdate/bz/debug/log.c
1 #include <bz/debug/log_internal.h>
3 #include <playdate/entrypoint.h>
4 #include <stb_sprintf.h>
6 #define kSprintfBufferLength 1024
7 static char buffer
[kSprintfBufferLength
];
9 void _bzLog(const char *filename
, unsigned long lineNumber
, const char *fmt
, ...) {
12 stbsp_vsnprintf(buffer
, kSprintfBufferLength
, fmt
, args
);
14 playdate
->system
->logToConsole("LOG: %s\n", buffer
);
17 void _bzError(const char *filename
, unsigned long lineNumber
, const char *fmt
, ...) {
20 stbsp_vsnprintf(buffer
, kSprintfBufferLength
, fmt
, args
);
22 playdate
->system
->error("LOG: %s\n", buffer
);
25 void bzLogInit(const char *outputFilePath
) {
28 void bzLogTeardown() {