package lintcstubs-arity

  1. Overview
  2. Docs
Generate headers for C bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lintcstubs-arity-0.5.1.tbz
sha256=fed804228bb8a79156ca691774001943c333a1bb9c3131c5ab7d6187af0a87cf
sha512=874832ede716f2e145eb41453fc1fa14241113ec88113cba66025ac0196e91bdd45689e58474438b6c066799df9d1161b94237bd24e306c8b4b00e2f534a6c9a

doc/src/lintcstubs-arity.primitives_of_cmt/ptypes.ml.html

Source file ptypes.ml

1
2
3
4
5
6
7
8
9
10
11
(** the C type of an argument *)
type native_arg =
  | Value  (** an OCaml value *)
  | Double  (** an unboxed double *)
  | Int32  (** an unboxed int32 *)
  | Int64  (** an unboxed int64 *)
  | Intnat of {untagged_int: bool}
      (** an unboxed intnat, 
          @see <https://v2.ocaml.org/manual/intfc.html#ss:c-unboxed> on the use of [intnat]*)
  | Bytecode_argv  (** bytecode argv when arity > 5 *)
  | Bytecode_argn  (** number of arguments when arity > 5 for bytecode *)