aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/errors.c')
-rw-r--r--src/bootstrap/errors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/errors.c b/src/bootstrap/errors.c
index c9d9c97..13a2f3c 100644
--- a/src/bootstrap/errors.c
+++ b/src/bootstrap/errors.c
@@ -17,6 +17,7 @@ typedef enum ErrorValue {
17 ERR_OBJ_NOT_CALLABLE, 17 ERR_OBJ_NOT_CALLABLE,
18 ERR_NOT_ENOUGH_ARGS, 18 ERR_NOT_ENOUGH_ARGS,
19 ERR_WRONG_ARG_TYPE, 19 ERR_WRONG_ARG_TYPE,
20 ERR_DIVISION_BY_ZERO,
20} ErrorValue; 21} ErrorValue;
21 22
22typedef struct Error { 23typedef struct Error {
@@ -39,6 +40,7 @@ static const char* error_msgs[] = {
39 [ERR_OBJ_NOT_CALLABLE] = "error: object is not callable", 40 [ERR_OBJ_NOT_CALLABLE] = "error: object is not callable",
40 [ERR_NOT_ENOUGH_ARGS] = "error: not enough arguments", 41 [ERR_NOT_ENOUGH_ARGS] = "error: not enough arguments",
41 [ERR_WRONG_ARG_TYPE] = "error: wrong argument type", 42 [ERR_WRONG_ARG_TYPE] = "error: wrong argument type",
43 [ERR_DIVISION_BY_ZERO] = "error: division by zero",
42}; 44};
43 45
44#define ERR_MAX_NUMBER 16 46#define ERR_MAX_NUMBER 16