floooh / sokol-zig

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

Reminder: macOS ABI issues for small structs are fixed in zig 0.9.0 #14

Closed floooh closed 1 year ago

floooh commented 3 years ago

This means small structs used as function args or return values no longer need to be padded to become bigger than 16 bytes, so the SOKOL_ZIG_BINDINGS hack can be removed from the sokol headers and sokol-zig bindings once zig 0.9.0 is released.

(see: https://github.com/ziglang/zig/issues/3211)

floooh commented 2 years ago

PS: are they actually? Need to test on an Intel Mac!

floooh commented 1 year ago

I actually removed the struct padding hack quite recently (it is at least no longer an issue on M1 Macs, haven't actually tested in Intel Macs though)