P99

◆ P99_PROTOTYPE

#define P99_PROTOTYPE (   ...)

Define the prototype of function NAME.

RT is the return type of the function, and the remaining arguments list the types of the arguments. This is needed by P99_DECLARE_DEFARG to determine the type of the functions that return default arguments.

Warning
the list should only contain types and should not give names to the individual parameters.
See also
P99_INSTANTIATE if your function is inline, in which case you also have to provide an external symbol for the function.
Remarks
This should be "macro-safe" that is if NAME is overloaded with a macro, P99_PROTOTYPE should still be able to instantiate the corresponding function.
argument 0 should correspond to a type that is not a VLA.
argument 2 should correspond to a type that is not a VLA.

Definition at line 197 of file p99_defarg.h.