File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 271271 " Unsuported number" arg))))
272272 ((or (string? arg) (bytevector? arg) (pointer? arg))
273273 'void* )
274+ ((boolean? arg) 'boolean )
274275 (else
275276 (assertion-violation 'name
276277 " Unsuported Scheme object" arg))))
Original file line number Diff line number Diff line change 233233 " Complex number not supported"
234234 arg))))
235235 ((cpointer? arg) _pointer)
236+ ((boolean? arg) _stdbool)
236237 (else (assertion-violation 'make-c-function
237238 " Unsupported argument" arg))))
238239 (if after
Original file line number Diff line number Diff line change 324324
325325; ; varargs
326326(let ((sum (foreign-procedure test-lib int sum (int ___))))
327- (test-equal " variadic argument" 10 (sum 4 1 2 3 4 )))
327+ (test-equal " variadic argument (1)" 10 (sum 4 1 2 3 4 ))
328+ ; ; #t = 1 :)
329+ (test-equal " variadic argument (2)" 10 (sum 4 #t 2 3 4 )))
328330
329331; ; typedef
330332(let ((id-str (foreign-procedure test-lib ppp id_str (ppp))))
You can’t perform that action at this time.
0 commit comments