aboutsummaryrefslogblamecommitdiffstats
path: root/lib/merklecpp_stubs.cpp
blob: 4ce427ec5af56b4e58b6d4a7e606a08f0b36c2e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
  }
}