Macro
fli
define-foreign-type type-name lambda-list &body forms => type-name
A symbol naming the new FLI type.
A lambda list which is the argument list of the new FLI type.
On ore more Lisp forms which provide a definition of the new type.
The name of the new FLI type.
define-foreign-type
defines a new FLI type called type-name. The forms in the definition can be used to determine the behavior of the type, depending on the arguments supplied to the lambda-list. (fli:define-foreign-type :int-array (dimensions) '(:c-array :int ,@dimensions)) (setq number-array (fli:allocate-foreign-object :type '(:int-array (2 2)))
:bool
, with the same size as an integer is defined. (fli:define-foreign-type :bool () '(:boolean :int)) (fli:size-of :bool)
define-c-typedef