fpco / inline-c

284 stars 50 forks source link

Support ForeignPtr arguments #55

Closed mboes closed 7 years ago

mboes commented 7 years ago

inline-c currently happily passes in Ptr arguments, and via a specialized "context", also has support for wrapping arbitrary functions into function pointers. However, sometimes the argument is wrapped as a ForeignPtr, i.e. a pointer to which one can associate a finalizer. inline-c could support those too in a style similar to FunPtr.