Added commands for printing to console and error generation.
Errors now print to stderr
This commit is contained in:
2
lval.h
2
lval.h
@@ -26,7 +26,7 @@ typedef struct lval_func lval_func;
|
||||
#define LVAL_IS_FALSE(val) (val->type == LVAL_NUM && fabs(val->data.num) <= DBL_EPSILON)
|
||||
|
||||
enum VAL_TYPE { LVAL_ERR, LVAL_NUM, LVAL_SYM, LVAL_FUNC, LVAL_S_EXPR, LVAL_Q_EXPR, LVAL_EXIT, LVAL_STR, LVAL_OK };
|
||||
enum VAL_ERROR { LERR_DIV_ZERO, LERR_BAD_OP, LERR_BAD_NUM, LERR_BAD_SYM, LERR_OTHER, LERR_SYNTAX };
|
||||
enum VAL_ERROR { LERR_DIV_ZERO, LERR_BAD_OP, LERR_BAD_NUM, LERR_BAD_SYM, LERR_OTHER, LERR_SYNTAX, LERR_USER };
|
||||
typedef enum VAL_TYPE VAL_TYPE;
|
||||
typedef enum VAL_ERROR VAL_ERROR;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user