You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The choice between safe and unsafe is not really something the tool can make on behalf of the user, though in the absence of any configuration, safe should be the default. There are also examples where we want to make two bindings (one safe and one unsafe) to the same C function; for example, see cryptohash (where the choice between the two is based on input size, though this is of course not directly relevant to hs-bindgen).
The text was updated successfully, but these errors were encountered:
One option here might be to follow the Vulkan bindings, and generate two modules .Safe and .Unsafe, so that programmers can just import the module they want. (Somewhat related: #75).
The choice between
safe
andunsafe
is not really something the tool can make on behalf of the user, though in the absence of any configuration,safe
should be the default. There are also examples where we want to make two bindings (onesafe
and oneunsafe
) to the same C function; for example, see cryptohash (where the choice between the two is based on input size, though this is of course not directly relevant tohs-bindgen
).The text was updated successfully, but these errors were encountered: