From: Dale Weiler Date: Mon, 30 Sep 2013 20:03:22 +0000 (-0400) Subject: Update documentation X-Git-Tag: 0.3.5~53 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=2ebf571129a3c7a13a49ca12294fb70bef50a62d Update documentation --- diff --git a/doc/gmqcc.1 b/doc/gmqcc.1 index c825a41..758e08d 100644 --- a/doc/gmqcc.1 +++ b/doc/gmqcc.1 @@ -336,6 +336,8 @@ When compiling original QuakeWorld QC there are instances where code overwrites constants. This is considered an error, however for QuakeWorld to compile it needs to be treated as a warning instead, as such this warning only works when -std=qcc. +.It Fl W Ns Cm directive-inmacro +Warn about the use of preprocessor directives inside macros. .El .Sh COMPILE FLAGS .Bl -tag -width Ds diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 474fe3c..acff3b3 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -532,6 +532,11 @@ CONST_OVERWRITE = true + #Warn about the use of preprocessor directives inside macros. + + DIRECTIVE_INMACRO = true + + [optimizations] #Some general peephole optimizations. For instance the code `a = b