Fixup c-value to work with new macro

This commit is contained in:
Justin Ethier 2020-05-04 22:59:51 -04:00
parent cdeeef8b27
commit 8fef2ec1ab
2 changed files with 5 additions and 7 deletions

View file

@ -9,7 +9,7 @@
(define-library (cyclone foreign)
(import
(scheme base)
(scheme write) ;; TODO: debugging only!
;(scheme write) ;; TODO: debugging only!
;(scheme cyclone pretty-print)
(scheme cyclone util)
)

View file

@ -994,12 +994,10 @@
args))
((eq? 'Cyc-foreign-value fun)
(c->scm (car args) (cadr args))
;(c:code/vars
; (string-append
; "obj_int2obj(" (car args) ")")
; (list))
)
(let ((kons (c->scm (car args) (cadr args))))
(c:code/vars
(cdr kons)
(list (car kons)))))
((prim? fun)
(let* ((c-fun