Next Previous Up Top Contents Index

5 Function and Macro Reference

foreign-slot-names

Function

Summary

Returns a list of the slot names in a foreign structure.
Package

fli

Signature

foreign-slot-names object => slot-names

Arguments

object

A foreign object or a pointer to a foreign object.

Values

slot-names

A list containing the slot names of object.

Description

Theforeign-slot-names function returns a list containing the slot names of a foreign object defined bydefine-c-struct. If object is not a structure, an error is signaled.
Example

In the following example a structure with three slots is defined, an instance of the structure is made, andforeign-slot-names is used to return a list of the slot names.
(fli:define-c-struct POS
  (x :int)
  (y :int)
  (z :int))

(setq my-pos (fli:allocate-foreign-object :type 'POS))

(fli:foreign-slot-names my-pos)

See Also

define-c-struct
foreign-slot-value

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker