Try fix error state (s)
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
#include "debug/debug.h"
|
#include "debug/debug.h"
|
||||||
|
|
||||||
|
errorstate_t ERROR_STATE = ERROR_STATE_INIT;
|
||||||
|
|
||||||
errorret_t errorThrowImpl(
|
errorret_t errorThrowImpl(
|
||||||
errorstate_t *state,
|
errorstate_t *state,
|
||||||
errorcode_t code,
|
errorcode_t code,
|
||||||
|
|||||||
@@ -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_PRINT_FORMAT = "Error (%d): %s\n%s";
|
||||||
static const char_t *ERROR_LINE_FORMAT = " at %s:%d in function %s\n";
|
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.
|
* Sets the error state with the provided code and message.
|
||||||
|
|||||||
Reference in New Issue
Block a user