Fixed problem with comment in preprocessor directive and last line of a file.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@85 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-01-13 17:20:58 +00:00
commit d3123e583c

View file

@ -911,6 +911,7 @@ SWIG_cpp_parse(DOH *s)
break;
case 46:
if (c == '\n') {
Ungetc(c,s);
cpp_lines++;
state = 50;
} else Putc(c,comment);