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/native_arg.ml.html

Source file native_arg.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 1 "cmt/lib/native_arg.gte52.ml"
open Ptypes

let native_arg_of_primitive arg =
  let open Primitive in
  match arg with
  | Same_as_ocaml_repr ->
      Value
  | Unboxed_float ->
      Double
  | Unboxed_integer Pnativeint ->
      Intnat {untagged_int= false}
  | Unboxed_integer Pint32 ->
      Int32
  | Unboxed_integer Pint64 ->
      Int64
  | Untagged_immediate ->
      (* the range of this is one bit less than Pnativeint, but still same type on C side *)
      Intnat {untagged_int= true}