Fixes missing type bug in zig-bindings introduced on #3756 (#3919)

Co-authored-by: Gustavo Maciel <gus@tavomaciel>
This commit is contained in:
Gustavo Maciel
2026-08-23 11:47:50 +10:00
committed by GitHub
parent 307cbbfbcb
commit 19eedfed66
2 changed files with 4 additions and 2 deletions

View File

@@ -75,6 +75,8 @@ local function convert_type_0(arg)
return arg.ctype:gsub("float", "f32")
elseif arg.ctype == "const char*" then
return "[*c]const u8"
elseif arg.ctype == "const uint8_t*" then
return "[*c]const u8"
elseif hasPrefix(arg.ctype, "char") then
return arg.ctype:gsub("char", "u8")
elseif hasSuffix(arg.fulltype, "Handle") then