Fix gc bug and add condition classes
This commit is contained in:
+4
-3
@@ -21,9 +21,10 @@ int main(int argc, const char **argv) {
|
||||
push_stack_frame(Qnil, Qnil, Qnil);
|
||||
ReadStream s;
|
||||
read_stream_init(&s, src, src_len);
|
||||
LispVal *l = read(&s);
|
||||
Feval(l, Qnil);
|
||||
lisp_gc_yield(NULL, true);
|
||||
LispVal *r;
|
||||
while ((r = read(&s))) {
|
||||
Feval(r, Qnil);
|
||||
}
|
||||
pop_stack_frame();
|
||||
lisp_shutdown();
|
||||
free(src);
|
||||
|
||||
Reference in New Issue
Block a user