diff --git a/tools/extract_constids.py b/tools/extract_constids.py index ddd7cf9..9c89e85 100644 --- a/tools/extract_constids.py +++ b/tools/extract_constids.py @@ -32,6 +32,8 @@ def parse_line(item,fout): elif line[0] in ["input", "output" ,"inout"]: items = " ".join(line[1:]).strip().split(",") for it in items: + if "=" in it: + it = it[:it.find("=")].strip() name = it.split(" ")[-1].strip() if len(name)>0: export_name(name, fout)