[ocaml-ctypes] calling a dynamically generated function

Nicolas Ojeda Bar no263 at dpmms.cam.ac.uk
Wed Apr 8 16:34:15 BST 2015


Hi list,

I have a value of type `unit ptr` that points to a function with known
signature.  Is there a way to obtain an OCaml function out of it in order
to call it ?

In other words, I am looking for a function with signature : `unit ptr ->
'a fn -> 'a`.

I did look through the docs but unless I missed something this case does
not seem to be covered.

Any ideas?

Best wishes,
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/ctypes/attachments/20150408/b40bcc1e/attachment.html>


More information about the Ctypes mailing list