Generate Python wrappers for inline constructors
authorBenedikt Tutzer <benedikt.tutzer@tuwien.ac.at>
Mon, 23 Sep 2019 11:17:59 +0000 (13:17 +0200)
committerBenedikt Tutzer <benedikt.tutzer@tuwien.ac.at>
Mon, 23 Sep 2019 11:17:59 +0000 (13:17 +0200)
Fixes: #1353
misc/py_wrap_generator.py

index 2bf364470597d344e90cece5e5f188a5c098f4ec..4ce8e947e077d85b7db2c0c36b655a5b25309683 100644 (file)
@@ -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:]