From fd69effec1e07f0af4aef23153c5cc7241021343 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 23 Feb 2015 13:37:27 -0500 Subject: [PATCH] Proof of concept for applying compiled proc Need to generalize this to take an arbitrary number of arguments. --- runtime.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime.h b/runtime.h index 207ab5ff..3c15db97 100644 --- a/runtime.h +++ b/runtime.h @@ -1075,6 +1075,10 @@ static object apply(object cont, object func, object args){ exit(1); } break; + case closure0_tag: + // TODO: get length of args, 2 below is just an example + return_funcall2((closure)func, cont, car(args)); + break; default: printf("Invalid object type %ld\n", type_of(func)); exit(1);