Use _get_arg_type_string when stringifying function return type

This commit is contained in:
Abdelrahman Said 2025-02-08 16:14:19 +00:00
parent f95d68f3d2
commit 8d0c731b72

View File

@ -147,7 +147,7 @@ class CFunc:
if i + 1 < len(self.args): if i + 1 < len(self.args):
args += ", " args += ", "
return qualifiers + str(self.ret_type) + " " + str(self.pointer) + self.name + f"({args})" return qualifiers + _get_arg_type_string(self.ret_type) + str(self.pointer) + self.name + f"({args})"
def declare(self) -> str: def declare(self) -> str:
return f"{str(self)};\n" return f"{str(self)};\n"