From b7f03837a2e54300c9bce612b1776a2823e6af92 Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Sat, 28 Aug 2021 17:47:47 +0300 Subject: [PATCH] Fix return type check for variadic functions --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());'