[ocaml-ctypes] Defines, and Structs with platform-specific fields

Daniel Bünzli daniel.buenzli at erratique.ch
Mon Oct 20 12:34:03 BST 2014

Le lundi, 20 octobre 2014 à 13:29, Trevor Smith a écrit :

> Jeremy,
> The allocate/coerce idea sounds great, however that won't play nicely with my cross-platform needs... (unless I am misunderstanding something).
If you are talking about the size of the struct, just write it with the #define constants and/or make a function that returns the size of the struct. With that number you can then follow Jeremy's proposal.  


More information about the Ctypes mailing list