3 #include "preprocess.hh"
6 #include <caml/memory.h>
7 #include <caml/mlvalues.h>
8 #include <caml/alloc.h>
14 extern "C" value preProcess_cpp (value v_str){
18 s = preProcess(String_val(v_str));
19 ml_s = caml_copy_string(s);
24 extern "C" value
preProcess_cpp (value v_str
){
27 string dsp_file
= string(String_val(v_str
));
28 cout
<< "Faust program: " << dsp_file
<< endl
;
29 char* dsp_file_c
= (char*)dsp_file
.c_str();
30 char* s
= preProcess(dsp_file_c
);
31 ml_s
= caml_copy_string(s
);