]> git.bts.cx Git - benzene.git/blob - src_platform/playdate/bz/debug/log.c
Fixed Aseprite rendering system
[benzene.git] / src_platform / playdate / bz / debug / log.c
1 #include <bz/debug/log_internal.h>
2
3 #include <playdate/entrypoint.h>
4 #include <stb_sprintf.h>
5
6 #define kSprintfBufferLength 1024
7 static char buffer[kSprintfBufferLength];
8
9 void _bzLog(const char *filename, unsigned long lineNumber, const char *fmt, ...) {
10 va_list args;
11 va_start(args, fmt);
12 stbsp_vsnprintf(buffer, kSprintfBufferLength, fmt, args);
13 va_end(args);
14 playdate->system->logToConsole("LOG: %s\n", buffer);
15 }
16
17 void _bzError(const char *filename, unsigned long lineNumber, const char *fmt, ...) {
18 va_list args;
19 va_start(args, fmt);
20 stbsp_vsnprintf(buffer, kSprintfBufferLength, fmt, args);
21 va_end(args);
22 playdate->system->error("LOG: %s\n", buffer);
23 }
24
25 void bzLogInit(const char *outputFilePath) {
26 }
27
28 void bzLogTeardown() {
29 }