Next: , Previous: , Up: overview   [Contents][Index]


1.2 Generated function names

CCStructs uses the facilities of the package CCStructs to generate function names for “well known” functions, using the preprocessor macros defined in the header file ccnames.h; (ccstructs)Automatically generated API names. Example uses of such macros are:

ccname_init(ccptn_t, pointer, clean)
ccname_new(ccptn_t,  pointer, clean)

which expand into names for constructor functions of ccptn_t structures, initialised from a pointer, registered to be destroyed using a clean handler. Another example is:

ccname_iface_new(ccstructs_dumpable_I, ccptn_t)

which expands into the name of the constructor function for the interface ccstructs_dumpable_I implemented by the struct type ccptn_t.


Next: , Previous: , Up: overview   [Contents][Index]

This document describes version 0.3.0-devel.3 of CCStructs.