Skip to content

Commit

Permalink
Added new error code
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-alvin committed Nov 26, 2023
1 parent 65b6009 commit d4513fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libjas/error.c
Original file line number Diff line number Diff line change
@@ -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];
}
1 change: 1 addition & 0 deletions libjas/include/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

typedef enum {
JAS_NO_ERROR,
JAS_ERROR_UNDEFINED_POINTER,
} jasErrorCode_t;

/**
Expand Down

0 comments on commit d4513fd

Please sign in to comment.