Next: , Previous: Macro features, Up: Macro features


7.2.1.1 Fweb macros with variable arguments

An important extension to the ANSI-C syntax is to allow macros with variable (optional) arguments. Fweb macros with a variable number of arguments are indicated by an ellipsis, as in

     @m VAR(x,y,z,...) text

The tokens ‘#0’ (number of variable arguments), ‘#n’ (value of the nth optional argument), and ‘#.’ (comma-delimited list of the optional arguments) are useful in this context.