Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 6: Foreign Types 40<br />
foreign-bitfield-symbols<br />
Syntax<br />
foreign-bitfield-symbols type value ⇒ symbols<br />
Arguments and Values<br />
type A bitfield type.<br />
value An integer.<br />
symbols A potentially shared list of symbols. nil.<br />
[Function]<br />
Description<br />
The function foreign-bitfield-symbols returns a possibly shared list of symbols that<br />
correspond to value in type.<br />
Examples<br />
(defbitfield flags<br />
(flag-a 1)<br />
(flag-b 2)<br />
(flag-c 4))<br />
<strong>CFFI</strong>> (foreign-bitfield-symbols ’boolean #b101)<br />
⇒ (FLAG-A FLAG-C)<br />
See Also<br />
[defbitfield], page 31<br />
[foreign-bitfield-value], page 41