This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,5 @@
(executables
(names ppx_cstruct_and_lwt)
(preprocess
(pps lwt_ppx ppx_cstruct))
(libraries cstruct lwt lwt.unix))

View file

@ -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