]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - doc/gmqcc.1
manpage: -flegacy-vector-maths
[xonotic/gmqcc.git] / doc / gmqcc.1
index ed88235ebbf77972405a4f4d91a2eb2b57fa218b..5240c4ea516026307d08ff85fda4a66016ee0443 100644 (file)
@@ -151,6 +151,10 @@ String containing the compiler version as printed by the --version
 parameter.
 .RE
 .TP
+.BR "--correct" ", " "--no-correct"
+When enabled, errors about undefined values try to suggest an existing
+value via spell checking.
+.TP
 .B "-dump"
 DEBUG OPTION. Print the code's intermediate representation before the
 optimization and finalization passes to stdout before generating the
@@ -477,6 +481,27 @@ 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
+.TP -flegacy-vector-maths
+Most Quake VMs, including the one from FTEQW or up till recently
+Darkplaces, do not cope well with vector instructions with overlapping
+input and output. This option will avoid producing such code.
 .SH OPTIMIZATIONS
 .TP
 .B -Opeephole