Difference between revisions of "Template:Csig"

From Maths
Jump to: navigation, search
m (Silly / link in template)
m (Adding case of 3 present but empty to show brackets (for functions with no arguments))
Line 1: Line 1:
 
{{cs|1={{{1|<noinclude>int</noinclude>}}} {{{2|<noinclude>printf</noinclude>}}}<!--
 
{{cs|1={{{1|<noinclude>int</noinclude>}}} {{{2|<noinclude>printf</noinclude>}}}<!--
  
-->{{#if:{{{3|<noinclude>const char*</noinclude>}}}{{{4|<noinclude>format</noinclude>}}}|<!--
+
-->{{#if:{{{3|<noinclude>const char*</noinclude>}}}{{{4|<noinclude>format</noinclude>}}}<!--
 
+
  We concatenate the following on too, this will be something if 3 is actually present, just empty. Allowing {{csig|pid_t|getpid|}} to show as a function for example
 +
-->{{#if:{{{3|something}}}|<!--3 is not empty, or it wasn't set case-->|XXX}}<!-- XXX is the result if 3 is set but empty, as required.
 +
End of if body, onto cases
 +
-->|<!--
 +
case true:
 
     if 3 concatenated with 4 is not empty (ie there is an arg)
 
     if 3 concatenated with 4 is not empty (ie there is an arg)
 
     -->({{csig/Arg|1={{{3|}}}|2={{{4|}}}|3={{csig/Arg|1={{{5|}}}|2={{{6|}}}|3=<!--END-->}}}})<!--
 
     -->({{csig/Arg|1={{{3|}}}|2={{{4|}}}|3={{csig/Arg|1={{{5|}}}|2={{{6|}}}|3=<!--END-->}}}})<!--
  
 
     -->|<!--
 
     -->|<!--
 +
case false:
 
     else (eg a variable)
 
     else (eg a variable)
 
     --><!--
 
     --><!--

Revision as of 08:00, 1 October 2017

int printf()