Module Cstubs_inverted
Operations for exposing OCaml code as C libraries.
module type INTERNAL = sig ... endval write_c : Stdlib.Format.formatter -> prefix:string -> (module BINDINGS) -> unitwrite_c fmt ~prefix bindingsgenerates C stubs for the functions bound withinternalinbindings. The stubs are intended to be used in conjunction with the ML code generated bywrite_ml.The generated code uses definitions exposed in the header file
cstubs_internals.h.
val write_c_header : Stdlib.Format.formatter -> prefix:string -> (module BINDINGS) -> unitwrite_c_header fmt ~prefix bindingsgenerates a C header file for the functions bound withinternalinbindings. The stubs are intended to be used in conjunction with the C code generated bywrite_c.
val write_ml : Stdlib.Format.formatter -> prefix:string -> (module BINDINGS) -> unitwrite_ml fmt ~prefix bindingsgenerates ML bindings for the functions bound withinternalinbindings. The generated code conforms to theINTERNALinterface.The generated code uses definitions exposed in the module
Cstubs_internals.