mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
manpage: -fvariadic-args
This commit is contained in:
parent
4df6d1e028
commit
127cc5215b
1 changed files with 17 additions and 0 deletions
17
doc/gmqcc.1
17
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
|
||||
|
|
Loading…
Reference in a new issue