treeform / genny

Generate a shared library and bindings for many languages.
MIT License
224 stars 9 forks source link

Better support for Zig bindings #49

Closed noiryuh closed 2 years ago

noiryuh commented 2 years ago

Using u64 for pointer is unsafe because it makes it easy for user to modify the address. Yes, it can happend with opaque too, but it requires casting, which they should know what they're doing before casting. It's same for current C bindings.