Next: Wrapping an Enumerate Type, Previous: Wrapping a C Function, Up: G-Wrap's High-level API [Contents][Index]
Add the C constant (either a macro or an enumerate value) defined by args to the list of constants to be wrapped by wrapset. The arguments in args must contain the following named parameters:
#:namea symbol that is name given to the C constant in the target language binding;
#:typea symbol denoting the type of this constant, more precisely the name of the wrapped-type for the constant’s type;
#:valuea string representing the constant in C (e.g. "ENOMEM");
#:descriptiona string describing this constant.