Fixed hang in VS10 debug mode (AppVeyor)
This commit is contained in:
parent
7f1af06df0
commit
7f9a313b94
|
@ -2945,6 +2945,9 @@ std::string Preprocessor::expandMacros(const std::string &code, std::string file
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
std::string line;
|
std::string line;
|
||||||
while (getlines(istr, line)) {
|
while (getlines(istr, line)) {
|
||||||
|
if (line.empty())
|
||||||
|
continue;
|
||||||
|
|
||||||
// Preprocessor directive
|
// Preprocessor directive
|
||||||
if (line[0] == '#') {
|
if (line[0] == '#') {
|
||||||
// defining a macro..
|
// defining a macro..
|
||||||
|
|
Loading…
Reference in New Issue