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 @@
(library
(name forutop)
(foreign_stubs
(language c)
(names forutop_stubs)))

View file

@ -0,0 +1,2 @@
external hello_in_utop: unit -> string = "hello_in_utop"
let run () = print_endline (hello_in_utop ())

View file

@ -0,0 +1,6 @@
#include <caml/alloc.h>
value hello_in_utop(value v_unit)
{
return caml_copy_string("hello in utop");
}

View file

@ -0,0 +1,2 @@
$ dune utop forutop -- init_forutop.ml
hello in utop