diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-17 06:08:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-17 06:08:35 -0700 |
commit | 0cb8bc8048c318e32382277bdf622bd227f31168 (patch) | |
tree | e31d70bb310f8c1b3f3c7768d9e9d5816bc8b3c7 /txr.1 | |
parent | 822d713065bcb44d1c1e035c34cb87fc085e74e3 (diff) | |
download | txr-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 'txr.1')
-rw-r--r-- | txr.1 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -54473,6 +54473,21 @@ macro expander. That is to say, the macro expands to that integer, such that there is no run-time computation. +.coNP Macro @ ffi +.synb +.mets (ffi << type-syntax ) +.syne +.desc +The +.code ffi +macro provides a shorthand notation for compiling a literal +FFI type expression to the corresponding type object. The +following equivalence holds: + +.cblk + (ffi expr) <--> (ffi-type-compile 'expr) +.cble + .coNP Functions @ ffi-put and @ ffi-put-into .synb .mets (ffi-put < obj << type ) |