diff options
author | Benedikt Tutzer <benedikt.tutzer@tuwien.ac.at> | 2019-09-23 13:17:59 +0200 |
---|---|---|
committer | Benedikt Tutzer <benedikt.tutzer@tuwien.ac.at> | 2019-09-23 13:17:59 +0200 |
commit | f39269805da150ee94dcd8374afce72e5770bf80 (patch) | |
tree | bce39a1909d23a91b8f2157a7933c967d9aadfdd | |
parent | 0a2d8db793fee47d8237c472c1d2d5ca4e21f865 (diff) | |
download | yosys-f39269805da150ee94dcd8374afce72e5770bf80.tar.gz yosys-f39269805da150ee94dcd8374afce72e5770bf80.tar.bz2 yosys-f39269805da150ee94dcd8374afce72e5770bf80.zip |
Generate Python wrappers for inline constructors
Fixes: #1353
-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:] |