Fix correct line number reporting in errors/warnings when a macro definition ends with '/' and it is not the end of a C comment - swig.swg has some of these macro definitions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f82811dbcd
commit
efb9090a87
6 changed files with 23 additions and 1 deletions
|
|
@ -1444,7 +1444,6 @@ String *Preprocessor_parse(String *s) {
|
|||
else if (c == '\n') {
|
||||
Putc('/', value);
|
||||
Ungetc(c, s);
|
||||
cpp_lines++;
|
||||
state = 50;
|
||||
} else {
|
||||
Putc('/', value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue