From: Clifford Wolf Date: Fri, 27 Dec 2013 14:05:52 +0000 (+0100) Subject: Fixed parsing of macros with no arguments and expansion text starting with "(" X-Git-Tag: yosys-0.2.0~224 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72026a934ecfd072b2e0964a12ba4fdafc0f276e;p=yosys.git Fixed parsing of macros with no arguments and expansion text starting with "(" --- diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc index 023c4dbcc..501adf059 100644 --- a/frontends/verilog/preproc.cc +++ b/frontends/verilog/preproc.cc @@ -309,9 +309,10 @@ std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::m std::map args; skip_spaces(); name = next_token(true); - skip_spaces(); int newline_count = 0; int state = 0; + if (skip_spaces() != "") + state = 3; while (!tok.empty()) { tok = next_token(); if (state == 0 && tok == "(") {