summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-17 06:08:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-17 06:08:35 -0700
commit0cb8bc8048c318e32382277bdf622bd227f31168 (patch)
treee31d70bb310f8c1b3f3c7768d9e9d5816bc8b3c7 /share
parent822d713065bcb44d1c1e035c34cb87fc085e74e3 (diff)
downloadtxr-0cb8bc8048c318e32382277bdf622bd227f31168.tar.gz
txr-0cb8bc8048c318e32382277bdf622bd227f31168.tar.bz2
txr-0cb8bc8048c318e32382277bdf622bd227f31168.zip
ffi: macro named ffi for type compiling shorthand.
* lisplib.c (ffi_set_entries): Add "ffi" to autoload name list. * share/txr/stdlib/ffi.tl (ffi): New macro. * txr.1: Documented.
Diffstat (limited to 'share')
-rw-r--r--share/txr/stdlib/ffi.tl3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/txr/stdlib/ffi.tl b/share/txr/stdlib/ffi.tl
index b2a14787..902605fa 100644
--- a/share/txr/stdlib/ffi.tl
+++ b/share/txr/stdlib/ffi.tl
@@ -98,3 +98,6 @@
(defmacro sizeof (type)
(ffi-size (ffi-type-compile type)))
+
+(defmacro ffi (type)
+ ^(ffi-type-compile ',type))