Skip to content

Commit

Permalink
Checking for empty lines while reconstructing verilog
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadmehmood committed Jan 25, 2024
1 parent 7a009a1 commit 9f3c715
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ class Eblif_Transformer {
std::string hdr = "";
while (std::getline(ifs, line)) {
std::string ln(line);
while ('\\' == ln.back() && std::getline(ifs, line)) {
while (!ln.empty() && '\\' == ln.back() && std::getline(ifs, line)) {
ln.pop_back();
ln += " " + line;
}
Expand Down

0 comments on commit 9f3c715

Please sign in to comment.