Fixing Kawa
This commit is contained in:
parent
51d2ed9380
commit
8b6cea55ad
|
|
@ -97,11 +97,8 @@
|
||||||
(define scheme-name
|
(define scheme-name
|
||||||
(let* ((callback-procedure
|
(let* ((callback-procedure
|
||||||
(lambda (arg1 . args)
|
(lambda (arg1 . args)
|
||||||
(try-catch
|
(try-catch (begin (apply procedure (append (list arg1) args)))
|
||||||
(begin
|
(ex <java.lang.Throwable> #f))))
|
||||||
(apply procedure (append (list arg1) args)))
|
|
||||||
(ex <java.lang.Throwable>
|
|
||||||
#f))))
|
|
||||||
(function-descriptor
|
(function-descriptor
|
||||||
(let ((function-descriptor
|
(let ((function-descriptor
|
||||||
(if (equal? return-type 'void)
|
(if (equal? return-type 'void)
|
||||||
|
|
@ -159,7 +156,7 @@
|
||||||
(invoke pointer 'equals null-pointer)))
|
(invoke pointer 'equals null-pointer)))
|
||||||
|
|
||||||
(define u8-value-layout
|
(define u8-value-layout
|
||||||
(invoke (static-field java.lang.foreign.ValueLayout 'JAVA_INT)
|
(invoke (static-field java.lang.foreign.ValueLayout 'JAVA_BYTE)
|
||||||
'withByteAlignment
|
'withByteAlignment
|
||||||
1))
|
1))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue