NextPrevUpTopContentsIndex

9.6.4 Inlining foreign slot access

Given a structure definition

(fli:define-c-struct foo-struct
  (a :int)
  (b :int))

you can inline access to a slot by declaring fli:foreign-slot-value inline and supplying the object-type :

(defun foo-a (struct)
  (declare (inline fli:foreign-slot-value))
  (fli:foreign-slot-value struct 'a :object-type 'foo-struct))

LispWorks User Guide - 21 Jul 2006

NextPrevUpTopContentsIndex