18,700
edits
m (oops) |
(testing support for variadic functions; trying clearer code style) |
||
Line 22: | Line 22: | ||
-->}} | -->}} | ||
|style="font-size:166%; vertical-align:bottom"|{{{name}}}( | |style="font-size:166%; vertical-align:bottom"|{{{name}}}( | ||
|style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg1variadic|}}}|''|}}<!-- | |style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg1variadic|}}}|''|}}<!-- use italics if variadic | ||
-->{{#if:{{{arg1name|}}}<!-- | -->{{#if:{{{arg1name|}}}<!-- | ||
-->|{{{arg1name|}}}<!-- | -->|{{{arg1name|}}}<!-- print arg 1 name if supplied | ||
-->{{#if:{{{arg1altname|}}}<!-- | -->{{#if:{{{arg1altname|}}}<!-- | ||
-->|<u>or</u> {{{arg1altname|}}}<!--print alternative arg 1 if present | -->| <u>or</u> {{{arg1altname|}}}<!--print alternative arg 1 if present | ||
-->|<!-- | -->|<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{arg2name|}}}|, |}}<!-- | -->{{#if:{{{arg2name|}}}|, |}}<!-- if there is a next arg, print comma | ||
-->|void );<!-- | -->|void );<!-- if no args, print "void" and a close parens | ||
-->}} | -->}} | ||
|style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg2name|}}} | |style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg2variadic|}}}|''|}}<!-- | ||
|{{{arg2name|}}} {{#if:{{{arg2altname|}}} | -->{{#if:{{{arg2name|}}}<!-- | ||
-->|{{{arg2name|}}}<!-- | |||
-->{{#if:{{{arg2altname|}}}<!-- | |||
|{{#if:{{{arg1name|}}}| ); |}} }} | -->| <u>or</u> {{{arg2altname|}}}<!-- | ||
-->|<!-- | |||
-->}}<!-- | |||
-->{{#if:{{{arg3name|}}}|, |}}<!-- | |||
-->|{{#if:{{{arg1name|}}}| ); |}} }} <!--if this was last arg, close parentheses--> | |||
|style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg3name|}}} | |style="font-size:166%; vertical-align:bottom"|{{#if:{{{arg3name|}}} | ||
|{{{arg3name|}}} {{#if:{{{arg3altname|}}} | |{{{arg3name|}}} {{#if:{{{arg3altname|}}} |