aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap/primitives.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-18 19:16:22 +0200
committerBad Diode <bd@badd10de.dev>2021-10-18 19:16:22 +0200
commit004d49dc5fc2a38aa1485dcd799dfe7cfd33902e (patch)
tree00705e441210c447c9224cae6015c6c6995ecf55 /src/bootstrap/primitives.c
parentb9a80d8bbc568ae8e995fde0ea1710359ab4ab1c (diff)
downloadbdl-004d49dc5fc2a38aa1485dcd799dfe7cfd33902e.tar.gz
bdl-004d49dc5fc2a38aa1485dcd799dfe7cfd33902e.zip
Add rule110 to the examples
Diffstat (limited to 'src/bootstrap/primitives.c')
-rw-r--r--src/bootstrap/primitives.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/bootstrap/primitives.c b/src/bootstrap/primitives.c
index 7ac9bf7..9960688 100644
--- a/src/bootstrap/primitives.c
+++ b/src/bootstrap/primitives.c
@@ -124,11 +124,13 @@ eval_lambda:
124 return obj_err; 124 return obj_err;
125 } 125 }
126 if (value == obj_nil) { 126 if (value == obj_nil) {
127 error_push((Error){ 127 // Need to reconsider this, it can cause issues when
128 .type = ERR_TYPE_RUNTIME, 128 // arguments contain a random nil
129 .value = ERR_NOT_ENOUGH_ARGS, 129 // error_push((Error){
130 }); 130 // .type = ERR_TYPE_RUNTIME,
131 return obj_err; 131 // .value = ERR_NOT_ENOUGH_ARGS,
132 // });
133 // return obj_err;
132 } 134 }
133 env_add_or_update_current(tmp, symbol, value); 135 env_add_or_update_current(tmp, symbol, value);
134 args = args->cdr; 136 args = args->cdr;