GNU Info

Info Node: (g-wrap.info)C code needed for adding new types

(g-wrap.info)C code needed for adding new types


Next: Generating and using the glue code Prev: Functions for describing C code to import to the interpreter Up: Top
Enter node , (file) or (file)node

C code needed for adding new types
**********************************

When you add a new type to the interpreter, you will need to supply the
names of three functions.  One function prints a representation of an
object of that type, another is called to deallocate the object when it
is garbage-collected, and the third is called to compare two objects of
that type for equality.

Utility functions
Printing object representations
Function for deallocating an object
Function for object comparisons

automatically generated by info2www version 1.2.2.9