mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-07 05:06:36 +02:00
Do not require TYPE arg of c-vlaue to be quoted in user code
This commit is contained in:
parent
12e110f601
commit
5e7d896a95
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@
|
|||
; (if (not (string? arg))
|
||||
; (error "c-value" "Invalid argument: string expected, received " arg)))
|
||||
; (cdr expr))
|
||||
`((lambda () (Cyc-foreign-value ,code-arg ,type-arg)))))))
|
||||
`((lambda () (Cyc-foreign-value ,code-arg (quote ,type-arg))))))))
|
||||
|
||||
(define-syntax c-code
|
||||
(er-macro-transformer
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
(define *my-global* #f)
|
||||
|
||||
(test-group "foreign value"
|
||||
(test 3 (c-value "1 + 2" 'integer))
|
||||
(test 3 (c-value "1 + 2" integer))
|
||||
)
|
||||
|
||||
(test-group "foreign code"
|
||||
|
|
Loading…
Add table
Reference in a new issue