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

This commit is contained in:
2025-11-12 14:12:57 -06:00
parent 8e5d5ca1d7
commit 0fa2beede4
2 changed files with 1 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
#include "util/string.h"
#include "debug/debug.h"
errorstate_t ERROR_STATE = ERROR_STATE_INIT;
errorstate_t ERROR_STATE = { 0 };
errorret_t errorThrowImpl(
errorstate_t *state,

View File

@@ -24,10 +24,6 @@ typedef struct {
static const errorcode_t ERROR_OK = 0;
static const errorcode_t ERROR_NOT_OK = 1;
#define ERROR_STATE_INIT ((const errorstate_t){ \
.code = ERROR_OK, .message = NULL, .lines = NULL \
})
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";
extern errorstate_t ERROR_STATE;