mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 23:53:26 +00:00
Merge pull request #1397 from btut/fix/python_wrappers_inline_constructors
Generate Python wrappers for inline constructors
This commit is contained in:
commit
ed47bd78e1
1 changed files with 2 additions and 0 deletions
|
@ -1081,6 +1081,8 @@ class WConstructor:
|
||||||
con.args = []
|
con.args = []
|
||||||
con.duplicate = False
|
con.duplicate = False
|
||||||
con.protected = protected
|
con.protected = protected
|
||||||
|
if str.startswith(str_def, "inline "):
|
||||||
|
str_def = str_def[7:]
|
||||||
if not str.startswith(str_def, class_.name + "("):
|
if not str.startswith(str_def, class_.name + "("):
|
||||||
return None
|
return None
|
||||||
str_def = str_def[len(class_.name)+1:]
|
str_def = str_def[len(class_.name)+1:]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue