Fix generating static methods without return value.
parent
3d4d004fb6
commit
d9d68550d9
|
@ -1135,7 +1135,10 @@ def generate_engine_class_source(class_api, used_classes, fully_used_classes, us
|
||||||
else:
|
else:
|
||||||
method_call += f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner"
|
method_call += f"return internal::_call_native_mb_ret_obj<{return_type}>(___method_bind, _owner"
|
||||||
else:
|
else:
|
||||||
method_call += f"internal::_call_native_mb_no_ret(___method_bind, _owner"
|
if method["is_static"]:
|
||||||
|
method_call += f"internal::_call_native_mb_no_ret(___method_bind, nullptr"
|
||||||
|
else:
|
||||||
|
method_call += f"internal::_call_native_mb_no_ret(___method_bind, _owner"
|
||||||
|
|
||||||
if "arguments" in method:
|
if "arguments" in method:
|
||||||
method_call += ", "
|
method_call += ", "
|
||||||
|
|
Loading…
Reference in New Issue