Generate Python wrappers for inline constructors

Fixes: #1353
This commit is contained in:
Benedikt Tutzer 2019-09-23 13:17:59 +02:00
parent 0a2d8db793
commit f39269805d
1 changed files with 2 additions and 0 deletions

View 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:]