Try fix error state (s)
Some checks failed
Build Dusk / build-linux (push) Failing after 49s
Build Dusk / release (push) Has been skipped

This commit is contained in:
2025-11-12 14:10:17 -06:00
parent 3f1c8e28e9
commit 2a68414eec
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
#include "util/string.h"
#include "debug/debug.h"
errorstate_t ERROR_STATE = ERROR_STATE_INIT;
errorret_t errorThrowImpl(
errorstate_t *state,
errorcode_t code,

View File

@@ -30,7 +30,7 @@ static const errorcode_t ERROR_NOT_OK = 1;
static const char_t *ERROR_PRINT_FORMAT = "Error (%d): %s\n%s";
static const char_t *ERROR_LINE_FORMAT = " at %s:%d in function %s\n";
static errorstate_t ERROR_STATE = ERROR_STATE_INIT;
extern errorstate_t ERROR_STATE;
/**
* Sets the error state with the provided code and message.