Next: foreign-enum-keyword, Previous: foreign-bitfield-symbols, Up: Foreign Types [Contents][Index]
A bitfield
type.
A Lisp symbol.
An integer.
The function foreign-bitfield-value
returns the value that
corresponds to the symbols in the symbols list.
(defbitfield flags (flag-a 1) (flag-b 2) (flag-c 4)) CFFI> (foreign-bitfield-value 'flags '(flag-a flag-c)) ⇒ 5 ; #b101