From: Benedikt Tutzer Date: Mon, 23 Sep 2019 11:17:59 +0000 (+0200) Subject: Generate Python wrappers for inline constructors X-Git-Tag: working-ls180~1030^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f39269805da150ee94dcd8374afce72e5770bf80;p=yosys.git Generate Python wrappers for inline constructors Fixes: #1353 --- 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:]