From 2ebf571129a3c7a13a49ca12294fb70bef50a62d Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Mon, 30 Sep 2013 16:03:22 -0400 Subject: [PATCH] Update documentation --- doc/gmqcc.1 | 2 ++ gmqcc.ini.example | 5 +++++ 2 files changed, 7 insertions(+) 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 -- 2.39.2