summaryrefslogtreecommitdiff
path: root/Examples/ocaml/argout_ref/example.i
blob: 472a83804a8cc25f46c834cf09ae9213ac0eeeb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* File : example.i */
%module example

%typemap(argout) (int &x, int &y) {
  swig_result = caml_list_append(swig_result, caml_val_int(*$1));
  swig_result = caml_list_append(swig_result, caml_val_int(*$2));
}

%{
extern "C" void   factor(int &x, int &y);
%}

extern "C" void   factor(int &x, int &y);