From 557f45a5a606b8f8ae1630c9f267d31376912746 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 26 May 2018 03:28:36 +0700 Subject: Import the initial, proof of concept implementation. --- stub/init.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 stub/init.c (limited to 'stub') diff --git a/stub/init.c b/stub/init.c new file mode 100644 index 0000000..20508b8 --- /dev/null +++ b/stub/init.c @@ -0,0 +1,9 @@ +#include + +__attribute__ ((__constructor__)) +void +init(void) +{ + char *caml_argv[1] = { NULL }; + caml_startup(caml_argv); +} -- cgit v1.2.3