Next: foreign-enum-value, Previous: foreign-bitfield-value, Up: Foreign Types [Contents][Index]
An enum
type.
An integer.
If true (the default), signal an error if value is not defined
in type. If false, foreign-enum-keyword
returns
nil
.
A keyword symbol.
The function foreign-enum-keyword
returns the keyword symbol
that corresponds to value in type.
An error is signaled if type doesn’t contain such value and errorp is true.
(defcenum boolean :no :yes) CFFI> (foreign-enum-keyword 'boolean 1) ⇒ :YES