diff options
| author | kcbanner <kcbanner@gmail.com> | 2023-01-01 20:11:05 -0500 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2023-01-01 20:11:05 -0500 |
| commit | 94435a19ef28a6611241ba3c4398fbfc7c49c4b6 (patch) | |
| tree | f1abb41b68b80578291559f691caf6d87b07a4fe /bindgen | |
| parent | 21c9d47c85324104b0a5eeae3e017bd3551df7bb (diff) | |
gen_zig.py: change to stage2 fnptr syntax
Diffstat (limited to 'bindgen')
| -rw-r--r-- | bindgen/gen_zig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindgen/gen_zig.py b/bindgen/gen_zig.py index 17b33d07..a9904ae9 100644 --- a/bindgen/gen_zig.py +++ b/bindgen/gen_zig.py @@ -328,7 +328,7 @@ def gen_struct(decl, prefix): elif is_const_prim_ptr(field_type): l(f" {field_name}: ?[*]const {as_zig_prim_type(util.extract_ptr_type(field_type))} = null,") elif util.is_func_ptr(field_type): - l(f" {field_name}: ?meta.FnPtr(fn({funcptr_args_c(field_type, prefix)}) callconv(.C) {funcptr_result_c(field_type)}) = null,") + l(f" {field_name}: ?*const fn({funcptr_args_c(field_type, prefix)}) callconv(.C) {funcptr_result_c(field_type)} = null,") elif util.is_1d_array_type(field_type): array_type = util.extract_array_type(field_type) array_sizes = util.extract_array_sizes(field_type) |