3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 14:13:23 +00:00

verilog: save and restore overwritten macro arguments

This commit is contained in:
Zachary Snow 2021-07-15 10:36:50 -04:00 committed by Zachary Snow
parent a055145b95
commit 3156226233
4 changed files with 54 additions and 4 deletions

View file

@ -42,6 +42,7 @@ struct define_map_t
// Add a definition, overwriting any existing definition for name.
void add(const std::string &name, const std::string &txt, const arg_map_t *args = nullptr);
void add(const std::string &name, const define_body_t &body);
// Merge in another map of definitions (which take precedence
// over anything currently defined).