From 7f9a313b94e7180a6ce16bcca98acca390eb7d70 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sun, 26 Jul 2015 14:19:02 +0200 Subject: [PATCH] Fixed hang in VS10 debug mode (AppVeyor) --- lib/preprocessor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index f6d26cd7e..a96d87f6d 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -2945,6 +2945,9 @@ std::string Preprocessor::expandMacros(const std::string &code, std::string file std::istringstream istr(code); std::string line; while (getlines(istr, line)) { + if (line.empty()) + continue; + // Preprocessor directive if (line[0] == '#') { // defining a macro..