This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
5
unikernel/duniverse/ocaml-cstruct/ppx_test/with-lwt/dune
Normal file
5
unikernel/duniverse/ocaml-cstruct/ppx_test/with-lwt/dune
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(executables
|
||||
(names ppx_cstruct_and_lwt)
|
||||
(preprocess
|
||||
(pps lwt_ppx ppx_cstruct))
|
||||
(libraries cstruct lwt lwt.unix))
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
[%%cstruct type foo = {
|
||||
magic: uint8_t [@len 16];
|
||||
}[@@little_endian]]
|
||||
|
||||
[%%cenum
|
||||
type foo64 =
|
||||
| ONE64
|
||||
| TWO64
|
||||
| THREE64
|
||||
[@@uint64_t]
|
||||
]
|
||||
|
||||
let foo =
|
||||
let%lwt foo = Lwt.return () in
|
||||
Lwt.return foo
|
||||
Loading…
Add table
Add a link
Reference in a new issue