mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #4701 from georgerennie/george/pyosys_noreturn_attrs
pyosys generator: ignore attributes
This commit is contained in:
commit
da8c8b4fd0
|
@ -1273,6 +1273,11 @@ class WFunction:
|
||||||
func.duplicate = False
|
func.duplicate = False
|
||||||
func.namespace = namespace
|
func.namespace = namespace
|
||||||
str_def = str_def.replace("operator ","operator")
|
str_def = str_def.replace("operator ","operator")
|
||||||
|
|
||||||
|
# remove attributes from the start
|
||||||
|
if str.startswith(str_def, "[[") and "]]" in str_def:
|
||||||
|
str_def = str_def[str_def.find("]]")+2:]
|
||||||
|
|
||||||
if str.startswith(str_def, "static "):
|
if str.startswith(str_def, "static "):
|
||||||
func.is_static = True
|
func.is_static = True
|
||||||
str_def = str_def[7:]
|
str_def = str_def[7:]
|
||||||
|
|
Loading…
Reference in New Issue