This commit is contained in:
2025-04-05 22:01:20 +02:00
parent ae758c34cd
commit 997442cefb

View File

@@ -30,8 +30,8 @@ def extract_prototypes(function_names, header_file):
arg_name = parts[-1] arg_name = parts[-1]
arg_type = ' '.join(parts[:-1]) arg_type = ' '.join(parts[:-1])
if arg_name != 'void': if arg_name != 'void':
argument_list.append(f'{arg_type} {arg_name}') argument_list.append(f"{arg_type} {arg_name}")
parameter_list.append(f'{arg_name.split('*')[-1]}') parameter_list.append(f"{arg_name.split('*')[-1]}")
if return_type == 'void': if return_type == 'void':
prototype = f'PULSE_OPENGL_WRAPPER({function_name}, ({", ".join(argument_list)}), ({", ".join(parameter_list)}), {"PFN" + function_name.upper() + "PROC"})' prototype = f'PULSE_OPENGL_WRAPPER({function_name}, ({", ".join(argument_list)}), ({", ".join(parameter_list)}), {"PFN" + function_name.upper() + "PROC"})'
else: else: