define-foreign-pointer name-and-options points-to-type &rest slots => type-name
A symbol naming the new FLI type.
:allow-null
or a defstruct
option.
A symbol.
A foreign type.
Slots of the new type.
The macro define-foreign-pointer
defines a new FLI pointer type called type-name.
type-name is a subtype of pointer
.
The option :allow-null
takes an option-value of either t
or nil
, defaulting to nil
. It controls whether the type type-name accepts nil
.
The other allowed options are the defstruct
options :conc-name
, :constructor
, :predicate
, :print-object
, :print-function
. In each case the symbol supplied as option-value provides the corresponding operator for type-name.
LispWorks Foreign Language Interface User Guide and Reference Manual - 16 Feb 2015