1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Spoike 2005-01-04 08:22:03 +00:00
parent 79c1f23370
commit dd7934c7db

View file

@ -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 != '(')