aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/verilog/preproc.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-01-18 19:22:20 +0100
committerClifford Wolf <clifford@clifford.at>2014-01-18 19:22:20 +0100
commit13359d65ba8cc4a968b5b27deef4040fb2430899 (patch)
treee2c13af344ae5fedbef42cb362159b2ad2123b5d /frontends/verilog/preproc.cc
parent2fbaaaca7af79a6505679092251a80dc89cbc493 (diff)
downloadyosys-13359d65ba8cc4a968b5b27deef4040fb2430899.tar.gz
yosys-13359d65ba8cc4a968b5b27deef4040fb2430899.tar.bz2
yosys-13359d65ba8cc4a968b5b27deef4040fb2430899.zip
Fixed parsing of verilog macros at end of line
Diffstat (limited to 'frontends/verilog/preproc.cc')
-rw-r--r--frontends/verilog/preproc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc
index 5cfa0f24b..db53e8c68 100644
--- a/frontends/verilog/preproc.cc
+++ b/frontends/verilog/preproc.cc
@@ -386,7 +386,7 @@ std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::m
std::string name = tok.substr(1);
// printf("expand: >>%s<< -> >>%s<<\n", name.c_str(), defines_map[name].c_str());
std::string skipped_spaces = skip_spaces();
- tok = next_token(true);
+ tok = next_token(false);
if (tok == "(" && defines_with_args.count(name) > 0) {
int level = 1;
std::vector<std::string> args;