aboutsummaryrefslogtreecommitdiff
path: root/bindgen/gen_zig.py
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2023-01-01 20:11:05 -0500
committerkcbanner <kcbanner@gmail.com>2023-01-01 20:11:05 -0500
commit94435a19ef28a6611241ba3c4398fbfc7c49c4b6 (patch)
treef1abb41b68b80578291559f691caf6d87b07a4fe /bindgen/gen_zig.py
parent21c9d47c85324104b0a5eeae3e017bd3551df7bb (diff)
gen_zig.py: change to stage2 fnptr syntax
Diffstat (limited to 'bindgen/gen_zig.py')
-rw-r--r--bindgen/gen_zig.py2
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)