[OCaml] Add a callback example
It is based on the the Python and Go examples.
This commit is contained in:
parent
fa0c3fe5c2
commit
a641966e0b
7 changed files with 95 additions and 2 deletions
10
Examples/ocaml/callback/example.i
Normal file
10
Examples/ocaml/callback/example.i
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/* File : example.i */
|
||||
%module(directors="1") example
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
|
||||
%feature("director") Callback;
|
||||
|
||||
%include "example.h"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue