floooh / sokol-zig

Zig bindings for the sokol headers (https://github.com/floooh/sokol)
zlib License
355 stars 49 forks source link

[examples] update print string format syntax #10

Closed hazeycode closed 3 years ago

floooh commented 3 years ago

Thanks for the fix. I'm not yet sure how to handle version-specific fixes in the bindings. One solution I have in mind is to open a new branch for each x.y Zig version, and merge that branch into master once that Zig version is released.

floooh commented 3 years ago

Ok, I've created a new branch zig-0.8.0 which contains the string formatting fixes, and also works on macOS again (I had to add some workarounds to sokol_audio.h for this issue: https://github.com/ziglang/zig/issues/8360

(once zig 0.8.0 becomes the stable version, I'll merge the branch zig-0.8.0 to master, and if newer zig version require changes we'll do the same process again).