From 127cc5215b04cde50646c2a342258035d6614750 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 12 Jan 2013 16:31:51 +0100 Subject: [PATCH] manpage: -fvariadic-args --- doc/gmqcc.1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.39.2