Defines a type for foreign blocks, in LispWorks for Macintosh.
define-foreign-block-callable-type name result-type arg-types => name
A foreign type specifier.
A list of foreign type specifiers.
define-foreign-block-callable-type defines a type for foreign blocks.
name specifies the name of the type. It must not be the same as the name of a define-foreign-callable.
result-type specifies the type of the result of the foreign block.
arg-types specifies the types of the arguments that a block of type name takes. These must correspond to the arguments types with which the block is called from the foreign call.
Note that the arg-types specify the type for a call from foreign code into Lisp, which affects the way :reference-return and :reference-pass are used. If the block is called from the foreign code with a pointer and you want to treat it as pass-by-reference, you need to use :reference-return (like define-foreign-callable does). See the qsort_b example in
define-foreign-block-callable-type returns name.
define-foreign-block-callable-type is implemented in LispWorks for Macintosh only.
LispWorks Foreign Language Interface User Guide and Reference Manual - 16 Feb 2015