From ed1f406102738812fafa5e49ee131fe06c177687 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 13 Oct 2021 16:44:17 +0200 Subject: Add a lot of primitive types --- src/bootstrap/errors.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bootstrap/errors.c') 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 { ERR_OBJ_NOT_CALLABLE, ERR_NOT_ENOUGH_ARGS, ERR_WRONG_ARG_TYPE, + ERR_DIVISION_BY_ZERO, } ErrorValue; typedef struct Error { @@ -39,6 +40,7 @@ static const char* error_msgs[] = { [ERR_OBJ_NOT_CALLABLE] = "error: object is not callable", [ERR_NOT_ENOUGH_ARGS] = "error: not enough arguments", [ERR_WRONG_ARG_TYPE] = "error: wrong argument type", + [ERR_DIVISION_BY_ZERO] = "error: division by zero", }; #define ERR_MAX_NUMBER 16 -- cgit v1.2.1