GNU Info

Info Node: (g-wrap.info)Defining a new constant

(g-wrap.info)Defining a new constant


Next: Other functions needed for describing the library glue code Prev: Adding a new type Up: Functions for describing C code to import to the interpreter
Enter node , (file) or (file)node

Defining a new constant
=======================

 - Function: new-constant sym-name type varb
     Defines a constant with C value VARB and C-type TYPE, and
     export it into the interpreter with Scheme-name SYM-NAME.
     SYM-NAME and VARB must be strings.

     If `(doc DESCRIPTION)' is passed as an option,    DESCRIPTION is
     used to document the constant in the    documentation file.

     Example:
          (new-constant 'MNULL  'MAT  "NULL" '(doc "null matrix"))
     This adds a value to the interpreter which is the `NULL' pointers,
     wrapped as a `MAT' value, and bound to symbol `MNULL'.


automatically generated by info2www version 1.2.2.9