Preprocessor: Fixed bug, read() didn't handle correctly string constants like this: "\""
This commit is contained in:
parent
a669d020cf
commit
345a7f2c9b
|
@ -114,6 +114,9 @@ std::string Preprocessor::read(std::istream &istr, const std::string &filename)
|
|||
{
|
||||
ch = (char)istr.get();
|
||||
code << std::string(1,ch);
|
||||
|
||||
// Avoid exiting loop if string contains "-characters
|
||||
ch = 0;
|
||||
}
|
||||
} while ( istr.good() && ch != '\"' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue