All Manuals > LispWorks Foreign Language Interface User Guide and Reference Manual > 6 Type Reference

NextPrevUpTopContentsIndex

:enum

FLI type descriptor
Summary

Converts between a Lisp symbol and a C enum .

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 value of symbol .

Description

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

Example

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

See also

define-c-enum
Integral types


LispWorks Foreign Language Interface User Guide and Reference Manual - 7 Dec 2011

NextPrevUpTopContentsIndex