ppx_cstubs
ppx_cstubs copied to clipboard
preprocessor for easier stub generation with ocaml-ctypes
There are some useful code examples in the documentation, especially regarding static callbacks, for instance. See https://github.com/fdopen/ppx_cstubs/blob/638b019ab5eb0d8a187710d00414a1d2536e249c/docs/static_callbacks.md The general algorithm is straightforward: We store the data associated with each closure...
`ppx_cstubs` does not support OCaml 5. I tried installing with opam on a fresh OCaml 5 switch and got the following error: ``` [ERROR] Package conflict! * No agreement on...
The following warning is issued when compiling on OCaml 4.14 (revision 638b019ab5eb0d8a187710d00414a1 -- i.e. release 0.7.0 ) `$ dune b` ```ocaml File "src/internal/ppx_main.ml", lines 280-286, characters 6-7: 280 | ......{...
Because of inclusion of `default_headers` before my own headers I'm getting a lot of compiler warnings. For example, I have gstreamer bindings and the gst_stubs.c ends up like this: ```c...
See also https://github.com/mirage/ocaml-cstruct/issues/205 and https://github.com/mirage/ocaml-cstruct/pull/215 for my attempt to add them into the Cstruct library. Hopefully they can be helpful.
ctypes 0.23 changed view of string (ptr (const char)), when string appears in external function arg, there will be an exception: ``` external%c func: s_:string -> void = {| //...