diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-09-30 10:31:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 10:31:57 -0700 |
commit | ed47bd78e1896280955835a2acf28f08f11aac24 (patch) | |
tree | 37712dcfdf5d83692d55e14530e41b7827b308e8 /misc/py_wrap_generator.py | |
parent | 0d27ffd4e6d53349d80d6f29f9e6b2f1c4b03cb7 (diff) | |
parent | f39269805da150ee94dcd8374afce72e5770bf80 (diff) | |
download | yosys-ed47bd78e1896280955835a2acf28f08f11aac24.tar.gz yosys-ed47bd78e1896280955835a2acf28f08f11aac24.tar.bz2 yosys-ed47bd78e1896280955835a2acf28f08f11aac24.zip |
Merge pull request #1397 from btut/fix/python_wrappers_inline_constructors
Generate Python wrappers for inline constructors
Diffstat (limited to 'misc/py_wrap_generator.py')
-rw-r--r-- | misc/py_wrap_generator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/py_wrap_generator.py b/misc/py_wrap_generator.py index 2bf364470..4ce8e947e 100644 --- a/misc/py_wrap_generator.py +++ b/misc/py_wrap_generator.py @@ -1081,6 +1081,8 @@ class WConstructor: con.args = [] con.duplicate = False con.protected = protected + if str.startswith(str_def, "inline "): + str_def = str_def[7:] if not str.startswith(str_def, class_.name + "("): return None str_def = str_def[len(class_.name)+1:] |