New FFI syntax

This commit is contained in:
Justin Ethier 2016-01-07 22:45:45 -05:00
parent 6d4c85766e
commit 5e1bc2f282

View file

@ -15,12 +15,11 @@
;; lambda portion is computed, so we can't include that.
;; compiler would need to insert the "static void (lambda)" part
;; TODO: maybe break up into two args, one being the args list and the other being the function body??
(c-ffi:define prim-test "
(define-c prim-test "
(void *data, int argc, closure _, object k, object arg1, object arg2) {
return_closcall1(data, k, arg1);
}
")
)
;; End FFI
(define (load filename . env)
(let ((exprs (call-with-input-file filename