]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
manpage and ini update
authorWolfgang Bumiller <wry.git@bumiller.com>
Thu, 25 Apr 2013 17:13:43 +0000 (19:13 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Thu, 25 Apr 2013 17:17:58 +0000 (19:17 +0200)
doc/gmqcc.1
gmqcc.ini.example

index 56728d17588c4f432180f7bd1769faa784d160ec..60257dc444b9645fe100f213d000f2ca3412437e 100644 (file)
@@ -497,6 +497,15 @@ void vafunc(string...count) {
 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.
 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.
+.It Fl f Ns Cm expressions-for-builtins
+Usually builtin-numbers are just immediate constants. With this flag
+expressions can be used, as long as they are compile-time constant.
+.Pp
+Example:
+.Bd -literal -offset indent
+void printA() = #1; // the usual way
+void printB() = #2-1; // with a constant expression
+.Ed
 .El
 .Sh OPTIMIZATIONS
 .Bl -tag -width Ds
 .El
 .Sh OPTIMIZATIONS
 .Bl -tag -width Ds
index b0ab51ff6d533838078a614c0af0f81d8f17c359..42aec66e880091daed8fe0843021795de436cb4c 100644 (file)
     # input and output. This option will avoid producing such code.
     LEGACY_VECTOR_MATHS          = true
 
     # input and output. This option will avoid producing such code.
     LEGACY_VECTOR_MATHS          = true
 
+    # Builtin-numbers are usually just immediate constants.
+    # The following allows whole expressions to be used, as long as they
+    # are compile-time constant.
+    EXPRESSIONS_FOR_BUILTINS     = false
+
 # These are all the warnings, usually present via the -W prefix from
 # the command line.
 [warnings]
 # These are all the warnings, usually present via the -W prefix from
 # the command line.
 [warnings]