]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - doc/qcvm.1
manpage: -fvariadic-args
[xonotic/gmqcc.git] / doc / qcvm.1
index b018a8f811b66c9f8dffa9043426d97be3e436aa..de8633ffedff0e58c1088c1cc4a4c61f0a96cb8b 100644 (file)
@@ -32,6 +32,9 @@ Print information from the program's header instead of executing.
 .B "-disasm"
 Disassemble the program by function instead of executing.
 .TP
+.BI "-disasm-func" function
+Search for and disassemble the given function.
+.TP
 .B "-printdefs"
 List all entries from the program's defs-section. Effectively
 listing all the global variables of the program.
@@ -44,7 +47,13 @@ This option disables execution.
 .TP
 .B "-printfuns"
 List functions and some information about their parameters.
-This option disables execution.
+This option disables execution. With a verbosity level of 1, builtin
+numbers are printed. With a verbosity of 2, the function's sizes are
+printed as well. This takes a little longer since the size is found by
+searching for a DONE instruction in the code.
+.TP
+.B "-v"
+Increase verbosity level, can be used multiple times.
 .TP
 .BI "-vector """ "x y z" """"
 Append a vector parameter to be passed to \fImain\fR.
@@ -114,6 +123,16 @@ Concatenate two strings, returning a tempstring.
 .in +8
 Compare two strings. Returns the same as the corresponding C functions.
 .in
+
+.RI "12) " vector " normalize (" vector ") = " "#12" ;
+.in +8
+Normalize a vector so its length is 1.
+.in
+
+.RI "13) " float " sqrt (" float ") = " "#13" ;
+.in +8
+Get a value's square root.
+.in
 .SH BUGS
 Please report bugs on <http://github.com/graphitemaster/gmqcc/issues>,
 or see <http://graphitemaster.github.com/gmqcc> on how to contact us.