Source

ocaml-cstruct-codegen / test / test1.ml

Full commit
open Cstruct_codegen;

value example = cstruct "mystruct"
  [ uint8_t  "ui8"
  ; int64_t "si64"
  ]
;

value () = codegen "/tmp/qwq.ml" [example]
;