package lintcstubs-arity

  1. Overview
  2. Docs
Generate headers for C bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lintcstubs-arity-0.5.2.tbz
sha256=9fe1fbefa215ad0e6d974500f8259f06cb55f59227d59134fc2fcfa5fe8a840f
sha512=737a11f5dbfab51458e78014f24d4ad045f29bb50f81490a596273c4c84f7a47402b0583707818197bbd9da4da79fbc9ac238d929f9290c414c15e45684bb8df

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 *)