From: Wolfgang Bumiller Date: Sat, 12 Jan 2013 15:31:51 +0000 (+0100) Subject: manpage: -fvariadic-args X-Git-Tag: before-library~279 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=127cc5215b04cde50646c2a342258035d6614750;p=xonotic%2Fgmqcc.git manpage: -fvariadic-args --- diff --git a/doc/gmqcc.1 b/doc/gmqcc.1 index ed88235..a67c1f5 100644 --- a/doc/gmqcc.1 +++ b/doc/gmqcc.1 @@ -477,6 +477,23 @@ Various effects, usually to weaken some conditions. Allow local variables named 'nil'. (This will not allow declaring a global of that name.) .RE +.TP +.B -fvariadic-args +Allow variadic parameters to be accessed by QC code. This can be +achieved via the '...' function, which takes a parameter index and a +typename. + +Example: +.sp +.in +4 +.nf +void vafunc(string...count) { + float i; + for (i = 0; i < count; ++i) + print(...(i, string), "\\n"); +} +.fi +.in .SH OPTIMIZATIONS .TP .B -Opeephole