diff options
Diffstat (limited to 'bindgen/gen_zig.py')
| -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 1bfa42db..57e2f860 100644 --- a/bindgen/gen_zig.py +++ b/bindgen/gen_zig.py @@ -460,7 +460,7 @@ def gen_helpers(inp): l('fn cStrToZig(c_str: [*c]const u8) [:0]const u8 {') l(' return @import("std").mem.span(c_str);') l('}') - if inp['prefix'] in ['sg_', 'sdtx_', 'sshape_']: + if inp['prefix'] in ['sg_', 'sdtx_', 'sshape_', 'sfetch_']: l('// helper function to convert "anything" to a Range struct') l('pub fn asRange(val: anytype) Range {') l(' const type_info = @typeInfo(@TypeOf(val));') |