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