Fixed a bug where optional string arguments weren't actually optional

This commit is contained in:
Nikolas 2026-01-29 20:29:10 +01:00
parent 97ebf75ce5
commit aaaa53c3ce
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -404,7 +404,7 @@ def parse_header(header_name: str, output_file: str, ext_file: str, prefix: str,
zig_type = ziggify_type(arg_name, arg_type, func_name)
if zig_type.startswith("*") and (func_name, arg_name) in single_opt:
if (func_name, arg_name) in single_opt:
if not arg_type.startswith("[*c]"):
arg_type = "?" + arg_type
zig_type = "?" + zig_type