ffi callbacks sorta kinda work now.
This commit is contained in:
@@ -160,7 +160,9 @@
|
||||
(unless (= (vector-length argsvec)
|
||||
(vector-length argtypes-n))
|
||||
(error 'ffi "args mismatch" argtypes args))
|
||||
(foreign-call "ikrt_ffi_call" data argsvec))))))
|
||||
(call/cc
|
||||
(lambda (k)
|
||||
(foreign-call "ikrt_ffi_call" data argsvec))))))))
|
||||
|
||||
(define (make-callback rtype argtypes)
|
||||
(let-values ([(cif argtypes-n rtype-n)
|
||||
|
||||
@@ -1 +1 @@
|
||||
1600
|
||||
1601
|
||||
|
||||
@@ -2354,7 +2354,8 @@
|
||||
[(P)
|
||||
(prm '= (prm 'int+
|
||||
(prm 'mref pcr (K pcb-frame-base))
|
||||
(K (- wordsize))) fpr)])
|
||||
(K (- wordsize)))
|
||||
fpr)])
|
||||
|
||||
(define-primop $current-frame unsafe
|
||||
[(V) (prm 'mref pcr (K pcb-next-continuation))])
|
||||
|
||||
Reference in New Issue
Block a user