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
.
(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