diff --git a/binding_generator.py b/binding_generator.py index 002243ab..8676ae97 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -1464,7 +1464,7 @@ def make_varargs_template(function_data, static=False): call_line = "\t\t" - if "return_value" in function_data and function_data["return_value"]["type"] != "void": + if return_type != "void": call_line += "return " call_line += f'{escape_identifier(function_data["name"])}_internal(call_args.data(), variant_args.size());'