diff options
| author | Trace Andreason <tandreason@gmail.com> | 2024-05-14 09:57:07 -0700 |
|---|---|---|
| committer | Trace Andreason <tandreason@gmail.com> | 2024-05-14 09:57:07 -0700 |
| commit | 0c8d43ea8e16025374dc5d92b1f3c54e306e8704 (patch) | |
| tree | e861b58239db6380c8700b8afdbcda7f4b8f17c3 /bindgen/gen_zig.py | |
| parent | 57d10ef03fabf65d5059aba0adef0e979f949937 (diff) | |
remove callback typedef
Diffstat (limited to 'bindgen/gen_zig.py')
| -rw-r--r-- | bindgen/gen_zig.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bindgen/gen_zig.py b/bindgen/gen_zig.py index 1f0f1ca3..a736cb0e 100644 --- a/bindgen/gen_zig.py +++ b/bindgen/gen_zig.py @@ -377,8 +377,6 @@ def gen_struct(decl, prefix): sys.exit(f"ERROR gen_struct is_2d_array_type: {array_type}") t0 = f"[{array_sizes[0]}][{array_sizes[1]}]{zig_type}" l(f" {field_name}: {t0} = [_][{array_sizes[1]}]{zig_type}{{[_]{zig_type}{{{def_val}}} ** {array_sizes[1]}}} ** {array_sizes[0]},") - elif field_name == "callback": - l(f" {field_name}: fn (*Response) void,") else: sys.exit(f"ERROR gen_struct: {field_name}: {field_type};") l("};") |