Imported make-opaque from simple-http-server

This commit is contained in:
Arthur Maciel 2022-06-25 19:02:52 -03:00
parent 86b1169cf9
commit 331152306b

View file

@ -14,6 +14,7 @@
(export
opaque?
opaque-null?
make-opaque
c-code
c-value
@ -31,6 +32,11 @@
"Cyc_check_opaque(data, p);
return_closcall1(data, k, make_boolean(opaque_ptr(p) == NULL));")
(define-c make-opaque
"(void *data, int argc, closure _, object k)"
"make_c_opaque(opq, NULL);
return_closcall1(data, k, &opq);")
;; (c-define-type name type (pack (unpack)))
(define-syntax c-define-type
(er-macro-transformer