summaryrefslogtreecommitdiff
path: root/frontends/verilog/preproc.cc
diff options
context:
space:
mode:
authorJohann Glaser <Johann.Glaser@gmx.at>2013-05-19 17:07:52 +0200
committerJohann Glaser <Johann.Glaser@gmx.at>2013-05-19 17:07:52 +0200
commit10a195c0a1be96a6e8e769110bafeeaa2b45478a (patch)
tree1064f0b795b69a2d6e996c6b2a5c307b6cc3af32 /frontends/verilog/preproc.cc
parentfbadb54b9bf4f5c1920bc35381d40ef988ea1f76 (diff)
added option '-Dname[=definition]' to command 'read_verilog'
Diffstat (limited to 'frontends/verilog/preproc.cc')
-rw-r--r--frontends/verilog/preproc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc
index e6fdc1ff..2dcc9104 100644
--- a/frontends/verilog/preproc.cc
+++ b/frontends/verilog/preproc.cc
@@ -206,9 +206,9 @@ static std::string define_to_feature(std::string defname)
return std::string();
}
-std::string frontend_verilog_preproc(FILE *f, std::string filename)
+std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::map<std::string, std::string> pre_defines_map)
{
- std::map<std::string, std::string> defines_map;
+ std::map<std::string, std::string> defines_map(pre_defines_map);
int ifdef_fail_level = 0;
output_code.clear();