Function
fli
foreign-slot-type object slot-name => type
A foreign object or a pointer to a foreign object.
The slot in object whose type is to be returned.
The type of slot-name.
foreign-slot-type
returns the type of a slot of a foreign object.
EAST
andWEST
are defined. Then a new structure,COMPASS
, is defined, with two slots. An instance of the structure is created, andforeign-slot-type
is used to get the type of the first slot of the structure. (fli:define-c-typedef EAST (:boolean :int)) (fli:define-c-typedef WEST :long) (fli:define-c-struct COMPASS (x EAST) (y WEST)) (setq dir (fli:allocate-foreign-object :type 'COMPASS)) (fli:foreign-slot-type dir 'x)
foreign-slot-names
foreign-slot-value