Closed darltrash closed 3 years ago
Nice, thanks. I'm planning to return to the Zig bindings soon (exactly because of those signed-vs-unsigned things, while the C-API will keep signed integers for almost everything, I'd like to change some things in the Zig API to unsigned).
I also need to fix the build.zig script for 8.0 on macOS (I guess you're not on macOS, otherwise you'd run into trouble building with 8.0, that's the other thing I need to look into).
Cheers!
Ok, I've updated to the latest sokol headers, and fixed the signed/unsigned confusion.
For the 'inline' keyword, I decided to simply remove this. It's not needed, and we can add it back when the language has more stabilized.
PS: please check the new branch zig-0.8.0
which should work across Wndows, Linux and macOS with the current zig dev version (0.8.0)
Hello! I was trying to compile Sokol with the latest Zig and it gave me an error caused by the change from
pub inline fn
tofn XXX() callconv(.Inline)
, so i decided to fix it. here is my attempt.I just changed line 436 from the gen_zig.py bindgen to:
It seems to be working just fine, but some examples break (the instancing one, for example (no pun intended)).
The example error was this: