add break

This commit is contained in:
suchmememanyskill
2021-07-10 14:45:09 +02:00
parent 91af9b4437
commit 0bef41c033
5 changed files with 28 additions and 6 deletions

View File

@@ -3,10 +3,11 @@
#include <stdarg.h>
s64 scriptCurrentLine;
u8 scriptLastError = 0;
void printScriptError(u8 errLevel, char* message, ...) {
va_list args;
scriptLastError = errLevel;
va_start(args, message);
gfx_printf("\n\n[%s] ", (errLevel == SCRIPT_FATAL) ? "FATAL" : (errLevel == SCRIPT_PARSER_FATAL) ? "PARSE_FATAL" : "WARN");
gfx_vprintf(message, args);