Next: Starting and controlling the interpreter, Previous: gh preliminaries, Up: GH
The following C constants and data types are defined in gh:
This is a C data type used to store all Scheme data, no matter what the Scheme type. Values are converted between C data types and the SCM type with utility functions described below (see Converting data between C and Scheme). See also How Guile does it.
The Scheme values returned by many boolean procedures in libguile.
This can cause confusion because they are different from 0 and 1. In testing a boolean function in libguile programming, you must always make sure that you check the spec:
gh_andscm_functions will usually returnSCM_BOOL_TandSCM_BOOL_F, but other C functions usually can be tested against 0 and 1, so programmers' fingers tend to just typeif (boolean_function()) { ... }