From dd7934c7db27a4fee786a1d8a9f5b8c6fd66c066 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 4 Jan 2005 08:22:03 +0000 Subject: [PATCH] Spotted that // wasn't being treated as a comment on frame macros. Thanks Urre. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@717 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/qcc_pr_lex.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine/qclib/qcc_pr_lex.c b/engine/qclib/qcc_pr_lex.c index 8fdfd6f10..83f39c229 100644 --- a/engine/qclib/qcc_pr_lex.c +++ b/engine/qclib/qcc_pr_lex.c @@ -1437,6 +1437,15 @@ pbool QCC_PR_SimpleGetToken (void) return false; pr_file_p++; } + if (pr_file_p[0] == '/') + { + if (pr_file_p[1] == '/') + { //comment alert + while(*pr_file_p && *pr_file_p != '\n') + pr_file_p++; + return false; + } + } i = 0; while ( (c = *pr_file_p) > ' ' && c != ',' && c != ';' && c != ')' && c != '(')