New run function based on rank2 grammars:
[SXSI/xpathcomp.git] / src / OCamlDriver.cpp
index ab145ec..7cf70c5 100644 (file)
@@ -1155,3 +1155,8 @@ extern "C" value caml_bp_save(value b, value file)
   CAMLreturn(Val_unit);
 }
 
+extern "C" value caml_bp_alloc_stats(value unit)
+{
+  CAMLparam1(unit);
+  CAMLreturn (Val_long(bp_get_alloc_stats()));
+}