From d4513fdaebbd43d06df4a50eeab0a60ea5226b90 Mon Sep 17 00:00:00 2001 From: Alvin Cheng <88267875+cheng-alvin@users.noreply.github.com> Date: Sun, 26 Nov 2023 16:19:56 +1100 Subject: [PATCH] Added new error code --- libjas/error.c | 2 +- libjas/include/error.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libjas/error.c b/libjas/error.c index 31ab31cc..c9103132 100644 --- a/libjas/error.c +++ b/libjas/error.c @@ -1,6 +1,6 @@ #include "error.h" char *jasErrorno(jasErrorCode_t c) { - char *codes[] = {"JAS_NO_ERROR"}; // TODO Add more error codes here! + char *codes[] = {"JAS_NO_ERROR", "JAS_ERROR_UNDEFINED_POINTER"}; // TODO Add more error codes here! return codes[c]; } diff --git a/libjas/include/error.h b/libjas/include/error.h index e52eb033..e92c52e5 100644 --- a/libjas/include/error.h +++ b/libjas/include/error.h @@ -14,6 +14,7 @@ typedef enum { JAS_NO_ERROR, + JAS_ERROR_UNDEFINED_POINTER, } jasErrorCode_t; /**