From 2a68414eec0fc95b569101beb8207a51d1804fd7 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Wed, 12 Nov 2025 14:10:17 -0600 Subject: [PATCH] Try fix error state (s) --- src/error/error.c | 2 ++ src/error/error.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/error/error.c b/src/error/error.c index 64d6132..f6fb60a 100644 --- a/src/error/error.c +++ b/src/error/error.c @@ -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, diff --git a/src/error/error.h b/src/error/error.h index 9c4f295..1fb9218 100644 --- a/src/error/error.h +++ b/src/error/error.h @@ -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.