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:
parent
a055145b95
commit
3156226233
4 changed files with 54 additions and 4 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue