chickadee » fmt » c-prototype

c-fun <type> <name> <params> <body> ...procedure
c-prototype <type> <name> <params>procedure

Output a function or function prototype. The parameters should be a list 2-element lists of the form (<param-type> <param-name>), which are output with DSP. A parameter can be abbreviated as just the symbol name, or #f can be passed as the type, in which case the 'default-type state variable is used. The parameters may be a dotted list, in which case ellipses for a C variadic are inserted - the actual name of the dotted value is ignored.

Types are just typically just symbols, or lists of symbols such as '(const char). A complete description is given below in section "C Types".

These can also accessed as %fun and %prototype at the head of a list.