Next: Flags and Enums, Up: Categories of Typelib Bindings [Contents][Index]
On introspection, when a typelib file defines a constant, Guile-GI
creates a variable. The variable name is in MACRO_CASE
, capital
letters separated by underscores. Note that the variables created are
not themselves constants: one could set!
them to another value,
with likely detrimental effects.
The names of the variables created will be the same as the native API, with the namespace removed.
;; In C, the constant G_BIG_ENDIAN BIG_ENDIAN