Next Previous Up Top Contents Index

6 Type Reference

:enum

FLI type descriptor

Summary

Converts between a Lisp list and a Cenum.
Package

fli

Syntax

:enum &rest enum-constants

enum-constants ::= {symbol | (symbol value)}*

Arguments

enum-constants

A sequence of one or more symbols naming the elements of the enumeration.

symbol

A symbol naming an element of the enumeration.

value

An integer specifying the index of symbol.

Description

The FLI:enum type converts between a Lisp list and the Cenum type. Each entry in the enum-constants can either consist of a symbol, in which case the first entry has an index value of 0, or of a list of a symbol and its corresponding index value.
Example

See define-c-enum, page 43, for an example using the:enum type.
See Also

define-c-enum

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker