From: Dale Weiler Date: Wed, 25 Sep 2013 19:35:18 +0000 (-0400) Subject: Cheap quick hack for ignoring #pragma to EOL X-Git-Tag: 0.3.5~76 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=894e1976e3b01764f5d80e5d1925804904f14025;p=xonotic%2Fgmqcc.git Cheap quick hack for ignoring #pragma to EOL --- diff --git a/parser.c b/parser.c index e0f46a4..839e089 100644 --- a/parser.c +++ b/parser.c @@ -3299,7 +3299,13 @@ static bool parse_pragma_do(parser_t *parser) else { (void)!parsewarning(parser, WARN_UNKNOWN_PRAGMAS, "ignoring #pragma %s", parser_tokval(parser)); - return false; + + /* skip to eol */ + while (!parse_eol(parser)) { + parser_next(parser); + } + + return true; } return true;