Next Prev Up Top Contents Index

:enum

FLI type descriptor
Summary

Converts between a Lisp list and a C enum .

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 C enum 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, for an example using the :enum type.

See Also

define-c-enum


LispWorks Foreign Language Interface User Guide and Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index