Next: , Previous: Character Data, Up: Immediate Datatypes


18.2.4.3 Booleans

Here are functions and macros for operating on booleans.

— C Macro: SCM SCM_BOOL_T
— C Macro: SCM SCM_BOOL_F

The Scheme true and false values.

— C Macro: int SCM_NFALSEP (x)

Convert the Scheme boolean value to a C boolean. Since every object in Scheme except #f is true, this amounts to comparing x to #f; hence the name.

— C Macro: SCM SCM_BOOL_NOT (x)

Return the boolean inverse of x. If x is not a Scheme boolean, the result is undefined.