P99

◆ P99_DECLARE_DEFARG

#define P99_DECLARE_DEFARG (   NAME,
  ... 
)

Provide default arguments for macro NAME.

Each element in the list must correspond to an expression that can be evaluated in the outer scope, just where this call is placed. In many cases they will be constant expressions such as 0, but they need not be so.

An empty argument, i.e nothing but an eventual comment, produces nothing. So no default argument will be provided for the corresponding position in the parameter list of NAME.

See also
P99_PROTOTYPE on how to declare the prototype of a function NAME that can be used with this
P99_CALL_DEFARG on how to declare the macro NAME
rand48_t_init for a more sophisticated example with non-constant expressions.

Definition at line 281 of file p99_defarg.h.