NextPrevUpTopContentsIndex

enum-value-symbol

Function
Summary

Finds an symbol in a FLI enumerator type.

Package

fli

Signature

enum-value-symbol enum-type index => symbol

Arguments

enum-type

A FLI enumerator type.

index

An integer.

Values

symbol

A symbol or nil .

Description

The function enum-value-symbol returns the symbol symbol in the FLI enumerator type enum-type at index index, or nil if index is out of range for enum-type .

Example
(fli:define-c-enum colors red green blue)
=>
(:ENUM COLORS)
 
(fli:enum-value-symbol 'COLORS 0)
=>
RED

 

(fli:define-c-enum half_year (jan 1) feb mar apr may jun)
=>
(:ENUM HALF_YEAR)
 
(fli:enum-value-symbol 'HALF_YEAR 2)
=>
FEB
See also

define-c-enum
enum-symbol-value


LispWorks Foreign Language Interface User Guide and Reference Manual - 13 Sep 2005

NextPrevUpTopContentsIndex