diff options
Diffstat (limited to 'lib/merklecpp_stubs.cpp')
| -rw-r--r-- | lib/merklecpp_stubs.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/merklecpp_stubs.cpp b/lib/merklecpp_stubs.cpp new file mode 100644 index 0000000..4ce427e --- /dev/null +++ b/lib/merklecpp_stubs.cpp @@ -0,0 +1,15 @@ +#include <iostream> +#include <merklecpp.h> + +void cpp_normal_function() { + std::cout << "HELLO OCAML! :)" << std::endl; +} + +extern "C" { +#include <caml/mlvalues.h> +#include <caml/memory.h> + extern value hello_ocaml(value unit){ + cpp_normal_function(); + return 0; + } +} |
