3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-30 07:53:16 +00:00

Added format __attribute__ to stringf()

This commit is contained in:
Clifford Wolf 2014-10-10 17:22:08 +02:00
parent 7cb0d3aa1a
commit bbd808072b
5 changed files with 8 additions and 6 deletions

View file

@ -422,7 +422,7 @@ std::string frontend_verilog_preproc(std::istream &f, std::string filename, cons
if (tok == "(" || tok == "{" || tok == "[")
level++;
}
for (size_t i = 0; i < args.size(); i++)
for (int i = 0; i < GetSize(args); i++)
defines_map[stringf("macro_%s_arg%d", name.c_str(), i+1)] = args[i];
} else {
insert_input(tok);