aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-04-09 08:22:31 -0300
committerBad Diode <bd@badd10de.dev>2022-04-09 08:22:31 -0300
commitab3e064c6f90ec94daad99b5a4c56e0abbcc79bb (patch)
tree597b3d8a3d10ea5914bb86d6c3774bde1b333eeb /src/errors.c
parent233dd92768a54060df9096558aa58c1f598cce7d (diff)
downloadbdl-ab3e064c6f90ec94daad99b5a4c56e0abbcc79bb.tar.gz
bdl-ab3e064c6f90ec94daad99b5a4c56e0abbcc79bb.zip
Add more type rules and numeric type coercion
Diffstat (limited to 'src/errors.c')
-rw-r--r--src/errors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.c b/src/errors.c
index b987b34..3974281 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -22,6 +22,8 @@ static const char* error_msgs[] = {
22 [ERR_WRONG_RET_TYPE] = "error: return type don't match type signature", 22 [ERR_WRONG_RET_TYPE] = "error: return type don't match type signature",
23 [ERR_WRONG_COND_TYPE] = "error: conditional expression is not boolean", 23 [ERR_WRONG_COND_TYPE] = "error: conditional expression is not boolean",
24 [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression", 24 [ERR_WRONG_TYPE_T_F] = "error: unmatched types between true and false expression",
25 [ERR_WRONG_TYPE_NUM] = "error: non numeric argument types",
26 [ERR_WRONG_TYPE_BOOL] = "error: non bool argument types",
25}; 27};
26 28
27static Error current_error = {.value = ERR_OK}; 29static Error current_error = {.value = ERR_OK};